/* Custom CSS for ICO Converter */

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
}

.drop-zone:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.drop-zone.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

/* File Input Styling */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Result Image */
#resultImage {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
}

/* Size Checkboxes */
.form-check-input:checked + .form-check-label {
    font-weight: bold;
    color: #007bff;
}

/* Progress Section */
.progress {
    height: 20px;
}

/* Message Board */
.message-board {
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    border-left: 3px solid #007bff;
    padding: 1rem 0;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.message-item.admin-view {
    border-left-color: #28a745;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-email {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.message-email.admin-visible::after {
    content: " (Admin only)";
    color: #dc3545;
    font-size: 0.75rem;
}

.message-content {
    margin-top: 0.5rem;
    color: #212529;
}

.message-date {
    font-size: 0.75rem;
    color: #6c757d;
}

.message-actions {
    margin-top: 0.5rem;
}

/* Admin Delete Button */
.btn-delete {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-date {
        margin-top: 0.25rem;
    }
}

/* Admin View Indicators */
.admin-indicator {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.admin-indicator.show {
    display: block;
}

/* Table Styles */
.table th {
    border-top: none;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
}

/* Animation for Success Message */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Login Form */
.card-login {
    max-width: 400px;
    margin: 0 auto;
}

/* Footer */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Icon Spacing */
.bi {
    margin-right: 0.5rem;
}

.bi:last-child {
    margin-right: 0;
}

/* Placeholder text styling */
.placeholder-text {
    color: #6c757d !important; /* Bootstrap muted color */
    font-style: italic;
}
