/* SETHU JEWELLERY ADMIN STYLESHEET - WHITE & BLUE BRAND MATCH */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f9fbfb;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-glass: rgba(80, 178, 177, 0.2);
    --border-gold: rgba(212, 175, 55, 0.45);
    
    --primary-blue: #0f6084;
    --blue-mid: #1b85a6;
    --blue-light: #50b2b1;
    --gold-primary: #d4af37;
    --gold-hover: #aa841e;
    
    --text-light: #1b2830;
    --text-muted: #5c6c74;
    --text-dark: #ffffff;
    
    --success: #0f9f70;
    --danger: #d94141;
    --shadow-premium: 0 10px 30px rgba(15, 96, 132, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(15, 96, 132, 0.03) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 45%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Authentication Screen (Login & Setup) */
.auth-wrapper {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--gold-primary));
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo .emblem {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-mid));
    color: white;
    font-size: 28px;
    font-weight: 800;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 15px rgba(15, 96, 132, 0.2);
    border: 2px solid var(--gold-primary);
}

.auth-logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.auth-logo p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Shell Layout for Admin Panel */
.admin-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(15, 96, 132, 0.15);
}

.admin-header h1 {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(125deg, var(--text-light) 30%, var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-header .eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* Panels and Cards */
.panel {
    background: var(--bg-card);
    border: 1px solid rgba(80, 178, 177, 0.18);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
}

.panel h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid var(--gold-primary);
    padding-left: 12px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-grid .panel {
    margin-bottom: 0;
}

/* Form Styling */
.grid-form {
    display: grid;
    gap: 20px;
}

.grid-form.two {
    grid-template-columns: 1fr 1fr;
}

.grid-form.three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-form.two, .grid-form.three {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group.wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-group.wide {
        grid-column: 1 / -1;
    }
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
    background: #ffffff;
    border: 1px solid rgba(15, 96, 132, 0.25);
    border-radius: 8px;
    color: var(--text-light);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(15, 96, 132, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

/* Custom file upload styling */
input[type="file"] {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(15, 96, 132, 0.03);
    padding: 8px;
    border: 1px dashed rgba(80, 178, 177, 0.35);
    border-radius: 8px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--primary-blue);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 6px 12px;
    margin-right: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

input[type="file"]::file-selector-button:hover {
    background: var(--blue-mid);
}

/* Buttons */
button, .btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--blue-mid));
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 96, 132, 0.25);
}

button:active, .btn:active {
    transform: translateY(0);
}

button.secondary, .btn.secondary {
    background: #ffffff;
    border: 1px solid rgba(15, 96, 132, 0.3);
    color: var(--text-light);
}

button.secondary:hover, .btn.secondary:hover {
    background: rgba(15, 96, 132, 0.05);
    border-color: var(--primary-blue);
    box-shadow: none;
}

button.danger, .btn.danger {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
    box-shadow: none;
}

button.danger:hover, .btn.danger:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
}

.ghost-btn {
    background: transparent;
    border: 1px solid rgba(15, 96, 132, 0.3);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
}

.ghost-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: none;
    transform: none;
}

/* Notifications and Alerts */
.notice {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
}

.notice.success {
    background: rgba(15, 159, 112, 0.08);
    border-color: var(--success);
    color: #0c6b4b;
}

.notice.error {
    background: rgba(217, 65, 65, 0.08);
    border-color: var(--danger);
    color: #922222;
}

/* Inventory List Table */
.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(80, 178, 177, 0.15);
    background: #ffffff;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    text-align: left;
}

th, td {
    padding: 16px;
    border-bottom: 1px solid rgba(80, 178, 177, 0.1);
}

th {
    background: rgba(80, 178, 177, 0.05);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

tr:hover td {
    background: rgba(80, 178, 177, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

td strong {
    color: var(--text-light);
}

td span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.active {
    background: rgba(15, 159, 112, 0.1);
    color: var(--success);
    border: 1px solid rgba(15, 159, 112, 0.25);
}

.badge.hidden {
    background: rgba(217, 65, 65, 0.1);
    color: var(--danger);
    border: 1px solid rgba(217, 65, 65, 0.25);
}

/* Action Links and Forms in Tables */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
}

.action-link:hover {
    color: var(--blue-mid);
    text-shadow: 0 0 5px rgba(15, 96, 132, 0.15);
}

.action-form {
    display: inline;
}

.action-form button {
    background: transparent;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    font-size: 13px;
    transition: var(--transition);
}

.action-form button:hover {
    color: #f03e3e;
    transform: none;
    box-shadow: none;
}

/* Helper Class */
.hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.ghost-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-left: 15px;
    transition: var(--transition);
}

.ghost-link:hover {
    color: var(--text-light);
}
