/* Minimal Black and White Styling for Appraisal Division */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

/* Layout Container */
.layout-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
    text-align: center;
}

.sidebar-header .logo {
    align-items: center;
    display: flex;
    justify-content: center;
}

.sidebar-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 70px;
    max-width: 180px;
    object-fit: contain;
    width: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav .nav-item {
    margin: 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
}

.sidebar-nav .nav-link:hover {
    background-color: #e9ecef;
    border-left-color: #000000;
}

.sidebar-nav .nav-link.active {
    background-color: #000000;
    color: #ffffff;
    border-left-color: #000000;
}

.sidebar-nav .nav-icon {
    font-size: 1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav .nav-icon.fas {
    font-size: 0.9rem;
}

.sidebar-nav .nav-text {
    font-weight: 500;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background-color: #ffffff;
}

.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 0.75rem;
    color: #000000;
}

.user-role {
    font-size: 0.625rem;
    color: #666666;
    text-transform: uppercase;
}

.sidebar-footer .logout-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: #dc3545;
    text-decoration: none;
    border: 1px solid #dc3545;
    border-radius: 0;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.sidebar-footer .logout-btn:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.sidebar-footer .logout-btn .nav-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.sidebar-footer .logout-btn .nav-icon.fas {
    font-size: 0.9rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: #000000;
    color: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
}

.page-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #cccccc;
}

.breadcrumb a {
    color: #cccccc;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* Remove old navigation styles - now using sidebar */

/* Main Content */
.main {
    flex: 1;
    padding: 1.5rem;
    background-color: #ffffff;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000000;
}

.page-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #666666;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.card-body {
    padding: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #000000;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.form-control:invalid {
    border-color: #dc3545;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn:hover {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border-color: #e9ecef;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    table-layout: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table th,
.table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #000000;
    font-size: 0.75rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    font-size: 0.625rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 0;
}

.badge-pending {
    background-color: #ffc107;
    color: #000000;
}

.badge-in-progress {
    background-color: #17a2b8;
    color: #ffffff;
}

.badge-on-hold {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-completed {
    background-color: #28a745;
    color: #ffffff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #ffffff;
}

.badge-low {
    background-color: #6c757d;
    color: #ffffff;
}

.badge-medium {
    background-color: #ffc107;
    color: #000000;
}

.badge-high {
    background-color: #fd7e14;
    color: #ffffff;
}

.badge-urgent {
    background-color: #dc3545;
    color: #ffffff;
}

.badge-done,
.badge-working-on-it,
.badge-cancel,
.badge-stuck,
.badge-not-started {
    color: #ffffff;
}

.badge-done {
    background-color: #57c878;
}

.badge-working-on-it {
    background-color: #f0a33a;
}

.badge-cancel,
.badge-stuck {
    background-color: #d23b46;
}

.badge-not-started {
    background-color: #bfbfbf;
}

/* Alerts */
.alert {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 0.875rem;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Login page */
.login-container {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 2rem 1rem;
}

.login-stack {
    max-width: 400px;
    text-align: center;
    width: 100%;
}

.login-brand-panel {
    margin-bottom: 0.75rem;
    text-align: center;
}

.login-insb-logo {
    display: block;
    margin: 1rem auto 0;
    max-height: clamp(38px, 6vw, 56px);
    max-width: 45%;
    object-fit: contain;
}

.login-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: clamp(1.25rem, 3vw, 2rem);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-portal-logo {
    display: block;
    margin: 0 auto 1rem;
    max-height: clamp(100px, 14vw, 150px);
    max-width: 110%;
    object-fit: contain;
}

.login-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666666;
    font-size: 1rem;
    margin: 0 0 1.25rem;
}

@media (max-width: 1024px) {
    .login-card {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .login-container {
        min-height: 100dvh;
        padding: 1.5rem 1rem;
    }

    .login-insb-logo {
        max-height: 46px;
    }

    .login-portal-logo {
        max-height: 96px;
        max-width: 100%;
    }

    .login-subtitle {
        font-size: 0.875rem;
    }
}

@media (max-width: 420px) {
    .login-card {
        max-width: none;
    }
}

/* Dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666666;
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.375rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .sidebar-header {
        padding: 1rem 0.75rem;
    }
    
    .sidebar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .sidebar-footer {
        padding: 0.75rem;
    }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
