/* 3INA CDMStores - Main Stylesheet */

:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #e91e63;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --sidebar-width: 260px;
}

/* ===== General ===== */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    padding: 20px;
}

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

.login-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.login-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.login-section h2 {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.login-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
}

.btn-microsoft {
    background-color: #2f2f2f;
    color: white;
    border: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-microsoft:hover {
    background-color: #1a1a1a;
    color: white;
}

/* ===== Mobile View (Users) ===== */
.mobile-view {
    background-color: var(--light-bg);
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-header h1 {
    font-size: 1.1rem;
}

.mobile-content {
    flex: 1;
    padding: 20px;
}

/* Store list */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: inherit;
}

.store-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.store-info {
    flex: 1;
}

.store-info h3 {
    font-size: 1rem;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.store-status {
    font-size: 0.85rem;
    color: #666;
}

.store-arrow {
    color: #999;
}

/* Reference cards */
.reference-cards .reference-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.reference-card .label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

.reference-card .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.reference-card small {
    font-size: 0.7rem;
}

/* Objective card */
.objective-card {
    background: linear-gradient(135deg, var(--accent-color), #c2185b);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
}

.objective-value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Report form */
.report-form .form-control {
    border-radius: 8px;
}

.report-form .form-control-lg {
    font-size: 1.5rem;
    padding: 15px;
    text-align: center;
}

/* ===== Admin View (Desktop) ===== */
.admin-view {
    background-color: var(--light-bg);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h1 {
    font-size: 1.2rem;
    margin: 0;
}

.sidebar-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 2rem;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Main content */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: white;
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-content {
    padding: 30px;
    flex: 1;
}

/* Summary cards */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.summary-info {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.summary-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Objectives grid */
.objectives-grid {
    margin-top: 20px;
}

.objectives-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #666;
    padding: 8px;
}

.objectives-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-cell {
    background: white;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.day-cell.empty {
    background: transparent;
    box-shadow: none;
}

.day-cell.weekend {
    background-color: #f5f5f5;
}

.day-number {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.day-input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.day-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Summary box */
.summary-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.summary-box .label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 8px;
}

.summary-box .value {
    font-size: 1.5rem;
    font-weight: 700;
}

.weekly-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.week-total {
    background: var(--light-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 70px;
    }

    .admin-sidebar .sidebar-header h1,
    .admin-sidebar .sidebar-nav span,
    .admin-sidebar .user-info > div {
        display: none;
    }

    .admin-sidebar .sidebar-nav a {
        justify-content: center;
    }

    .admin-sidebar .sidebar-nav a i {
        margin-right: 0;
    }

    .admin-main {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,0,0,0.1);
}

/* Modals */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}
