/* ============================================
   TG ERP - MAIN STYLESHEET (OFFLINE)
   ============================================ */

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ====== TOP NAVIGATION ====== */
.navbar-top {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 6px 20px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1020;
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out !important;
}

.navbar-top.sidebar-collapsed {
    margin-left: 65px;
}

.navbar-top .navbar-brand {
    font-weight: 700;
    color: #1a1a2e !important;
    font-size: 18px;
}

.navbar-top .navbar-brand i {
    color: #667eea;
}

.server-time {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.server-time i {
    color: #28a745;
}

/* ====== MAIN WRAPPER ====== */
.main-wrapper {
    transition: all 0.3s ease-in-out !important;
    min-height: 100vh;
    padding-top: 60px;
}

.main-wrapper.sidebar-collapsed {
    margin-left: 65px;
}

.content-area {
    padding: 15px 20px;
    max-wide: 100%;
}

/* ====== CARDS ====== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

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

.card-header {
    background: transparent;
    border-bottom: 2px solid #f0f2f5;
    font-weight: 600;
    padding: 15px 20px;
}

/* ====== BUTTONS ====== */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ====== BADGES ====== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* ====== AVATARS ====== */
.avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ====== ALERTS ====== */
.alert {
    border-radius: 10px;
    border: none;
}

/* ====== FOOTER ====== */
.footer {
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .navbar-top {
        margin-left: 0 !important;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
        padding-top: 60px;
    }
    
    .footer {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 10px;
    }
}
