/* Management CSS - Management System Specific Styles */

/* Management Login */
.management-login {
    max-width: 450px;
    margin: 3rem auto;
    background: white;
    padding: 4rem;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    text-align: center;
}

.management-login h2 {
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Management Panel */
.management-panel {
    display: none;
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.management-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ecf0f1;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #d5dbdb;
    transform: translateY(-1px);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeInSlide 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

/* Team Management */
.member-edit {
    border: 2px solid #ecf0f1;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.member-edit:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.1);
}

.member-edit h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* File Input Styling */
.file-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #3498db;
}

.file-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Custom File Upload Button */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.file-upload:hover {
    border-color: #3498db;
    background: #e8f4f8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.1);
}

.file-upload span {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    top: 0;
    left: 0;
}

.file-upload::after {
    content: "📁 Drag & Drop or Click to Browse";
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.file-upload.has-file {
    border-color: #27ae60;
    background: #e8f5e8;
}

.file-upload.has-file::after {
    content: "✅ File Selected - Click to Change";
    color: #27ae60;
}

.current-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Security Status */
.security-status {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.security-status h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.security-status p {
    margin-bottom: 0.5rem;
}

/* Backup Section */
.backup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.backup-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.backup-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.backup-card p {
    color: #7f8c8d;
    margin: 1rem 0;
}

/* Warning Box */
.warning-box {
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: #856404;
    margin-bottom: 0.3rem;
}

/* Logout Section */
.logout-section {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.logout-section p {
    color: #7f8c8d;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Management Responsive */
@media (max-width: 768px) {
    .management-nav {
        flex-direction: column;
    }
    
    .management-login {
        padding: 2rem;
        margin: 2rem auto;
    }
    
    .management-panel {
        padding: 2rem;
    }
    
    .member-edit {
        padding: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* Animation for management panels */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.management-panel.show {
    animation: slideIn 0.5s ease;
}

/* Image Preview Sections */
.image-preview-section {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.current-image-preview h5 {
    color: #2d3748;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.favicon-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bg-preview {
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.header-bg-preview,
.footer-bg-preview {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.header-bg-preview::after {
    content: 'Header';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-bg-preview::after {
    content: 'Footer';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.body-bg-preview {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.body-bg-preview::after {
    content: 'Body Background';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-size: 0.8rem;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

#currentFavicon {
    object-fit: contain;
    background: white;
}

#noFaviconText,
#noHeaderText,
#noFooterText,
#noBodyText {
    display: block;
    text-align: center;
    padding: 1rem;
    font-size: 0.85rem;
}