/* Admin Panel Styles */

/* Login */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8f8f8;
}

.admin-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #888;
    font-size: 0.95rem;
}

.login-error {
    color: #e53935;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 0.5rem;
}

.optional {
    text-transform: none;
    font-weight: 400;
    letter-spacing: 0;
    color: #aaa;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    background: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #556b2f;
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
    background: #fff;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn-admin-primary {
    width: 100%;
    padding: 0.9rem 2rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-admin-primary:hover {
    background: #556b2f;
    transform: translateY(-1px);
}

.btn-admin-logout {
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: #e53935;
    border: 1px solid #e53935;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-admin-logout:hover {
    background: #e53935;
    color: #fff;
}

.btn-admin-delete {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #e53935;
    border: 1px solid #eee;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-admin-delete:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
}

/* Dashboard */
.admin-dashboard {
    padding: 120px 0 4rem 0;
    display: none;
    background: #f8f8f8;
    min-height: 100vh;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.dash-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.dash-header p {
    color: #888;
}

.dash-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.dash-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dash-card-header i {
    font-size: 1.5rem;
    color: #556b2f;
}

.dash-card-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Admin Items Grid */
.admin-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.admin-item-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.admin-item-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.admin-item-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.admin-item-body {
    padding: 1.25rem;
}

.admin-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.admin-item-top h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.admin-item-top .price {
    font-weight: 600;
    color: #556b2f;
}

.admin-item-body p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem;
    color: #aaa;
    grid-column: 1 / -1;
}

.loading-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .dash-header {
        flex-direction: column;
        gap: 1rem;
    }
    .admin-items-grid {
        grid-template-columns: 1fr;
    }
    .admin-login-card {
        padding: 2rem;
    }
}
