/* Styles Frontend SCAO */
.scao-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.scao-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.scao-card:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

.scao-card-header {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.scao-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scao-card-title .dashicons {
    color: #667eea;
    font-size: 28px;
}

.scao-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scao-badge-active {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

.scao-badge-inactive {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
}

.scao-badge-corps {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.scao-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.scao-info-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.scao-info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.scao-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.scao-info-value a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.scao-info-value a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.scao-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.scao-section:last-child {
    border-bottom: none;
}

.scao-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scao-section-title .dashicons {
    color: #667eea;
}

.scao-ateliers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.scao-atelier-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.scao-decrets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.scao-decret-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.scao-decret-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.scao-decret-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.scao-decret-type {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.scao-decret-type-administratif {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
}

.scao-decret-type-nomination {
    background: rgba(67, 233, 123, 0.2);
    color: #43e97b;
}

.scao-decret-numero {
    font-weight: bold;
    color: #2c3e50;
    font-size: 14px;
}

.scao-decret-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.scao-decret-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scao-decret-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.scao-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.scao-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.scao-btn-secondary {
    background: white;
    color: #666;
    border-color: #e0e0e0;
}

.scao-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.scao-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.scao-fichiers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.scao-fichier-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.scao-fichier-item:hover {
    background: #eef2ff;
    transform: translateY(-3px);
}

.scao-fichier-icon {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 10px;
}

.scao-fichier-nom {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    word-break: break-word;
}

.scao-fichier-size {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.scao-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.scao-popup-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
}

.scao-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.scao-popup-close:hover {
    background: #f8f9fa;
    color: #f5576c;
}

.scao-diploma-preview {
    text-align: center;
}

.scao-diploma-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.scao-membres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.scao-membre-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.scao-membre-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.scao-membre-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.scao-membre-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.scao-membre-matricule {
    font-size: 13px;
    color: #667eea;
    text-align: center;
    font-weight: 500;
    margin-bottom: 15px;
}

.scao-membre-details {
    font-size: 13px;
    color: #666;
    text-align: center;
}

.scao-membre-details div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scao-membre-link {
    display: block;
    text-align: center;
    margin-top: 15px;
}

.scao-search-bar {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.scao-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.scao-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.scao-filter-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.scao-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.scao-empty-state-icon {
    font-size: 60px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.scao-empty-state h3 {
    font-size: 20px;
    margin: 0 0 10px 0;
    color: #333;
}

.scao-login-form {
    max-width: 400px;
    margin: 0 auto;
}

.scao-form-group {
    margin-bottom: 20px;
}

.scao-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.scao-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.scao-form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.scao-error-message {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #f5576c;
}

.scao-success-message {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #43e97b;
}

@media (max-width: 768px) {
    .scao-info-grid {
        grid-template-columns: 1fr;
    }
    
    .scao-decrets-grid {
        grid-template-columns: 1fr;
    }
    
    .scao-membres-grid {
        grid-template-columns: 1fr;
    }
    
    .scao-search-bar {
        flex-direction: column;
    }
}