/* admin.css - Complete Admin Panel Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================
   LOGIN PAGE
=================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.login-form label i {
    margin-right: 5px;
    color: #667eea;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 10px;
}

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

.btn-login i {
    margin-right: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
}

.login-footer a i {
    margin-right: 5px;
}

/* ===================
   ALERTS
=================== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert i {
    font-size: 20px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ===================
   ADMIN HEADER
=================== */
.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 24px;
    color: #333;
}

.admin-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-text {
    color: #666;
}

.welcome-text strong {
    color: #333;
}

.btn-logout,
.btn-back {
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back {
    background: #667eea;
}

.btn-logout:hover {
    background: #ff3838;
    transform: translateY(-2px);
}

.btn-back:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* ===================
   DASHBOARD
=================== */
.dashboard-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.dashboard-container {
    padding: 40px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.upload-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gallery-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.settings-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.dashboard-card h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    margin-bottom: 20px;
}

.btn-card {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-card:hover {
    transform: scale(1.05);
}

.btn-disabled {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===================
   UPLOAD PAGE
=================== */
.upload-container {
    padding: 40px 0;
}

.upload-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-header i {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 15px;
}

.upload-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.upload-header p {
    color: #666;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

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

.file-input-label {
    display: block;
    padding: 60px 20px;
    border: 3px dashed #667eea;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-input-label:hover {
    background: #e9ecef;
    border-color: #764ba2;
}

.file-input-label i {
    font-size: 48px;
    color: #667eea;
    display: block;
    margin-bottom: 15px;
}

.file-input-label span {
    display: block;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.file-input-label small {
    color: #666;
    font-size: 14px;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.preview-item {
    text-align: center;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.preview-item p {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-upload {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-upload i {
    margin-right: 10px;
}

/* ===================
   RESPONSIVE
=================== */
@media (max-width: 768px) {
    .admin-header .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    .btn-logout,
    .btn-back {
        width: 100%;
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .upload-box {
        padding: 20px;
    }
}
