/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.empty-state p {
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto;
}

.error-messages {
    background: #fdf2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.error-messages h4 {
    color: #dc2626;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.error-messages ul {
    margin: 0;
    padding-left: 20px;
}

.error-messages li {
    color: #dc2626;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .admin-header,
    .admin-content {
        padding: 20px;
    }
    
    .admin-header h1 {
        font-size: 1.8rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .actions {
        white-space: normal;
    }
    
    .actions .btn {
        margin-bottom: 8px;
        width: 100%;
    }
    
    .readonly-fields .field {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .form-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    dt {
        font-weight: 600;
        border-bottom: 1px solid #ecf0f1;
        padding-bottom: 4px;
    }
    
    dd {
        padding: 0 0 12px 0;
    }
}

.flash-message {
    position: relative;
    padding: 16px 50px 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: flash-slide-in 0.3s ease-out;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flash-message.flash-notice {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.flash-message.flash-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.flash-message.flash-alert {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.flash-message.flash-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.flash-message.flash-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.flash-message.flash-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.flash-content {
    flex: 1;
    line-height: 1.4;
}

.flash-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: currentColor;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.flash-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

.flash-close:focus {
    outline: none;
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

@keyframes flash-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-message.flash-dismissing {
    animation: flash-slide-out 0.3s ease-in forwards;
}

@keyframes flash-slide-out {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        margin-bottom: 20px;
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .flash-message {
        padding: 14px 45px 14px 16px;
        font-size: 0.95rem;
    }
    
    .flash-close {
        right: 12px;
        width: 28px;
        height: 28px;
        font-size: 20px;
    }
}

