/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ecf0f1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info i {
    font-size: 32px;
    color: #3498db;
}

.user-info div {
    flex: 1;
}

.user-info strong {
    display: block;
    font-size: 14px;
}

.user-info small {
    font-size: 12px;
    color: #bdc3c7;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.menu-section {
    padding: 15px 20px 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #7f8c8d;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #95a5a6;
}

.sidebar-footer small {
    display: block;
    margin-bottom: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-header {
    background: white;
    padding: 15px 25px;
    border-bottom: 1px solid #e1e5eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #2c3e50;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background: #f8f9fa;
}

.top-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.status-indicator .online {
    color: #27ae60;
}

.status-indicator .offline {
    color: #e74c3c;
}

.notifications {
    position: relative;
    cursor: pointer;
}

.notifications i {
    font-size: 18px;
    color: #7f8c8d;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 15px;
    text-align: center;
}

/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* Main Footer */
.main-footer {
    background: white;
    padding: 15px 25px;
    border-top: 1px solid #e1e5eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #7f8c8d;
}

.form-status .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background: #f39c12;
    color: white;
}

.badge-submitted {
    background: #3498db;
    color: white;
}

.badge-verified {
    background: #2ecc71;
    color: white;
}

.badge-approved {
    background: #27ae60;
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header h3 {
    font-size: 18px;
    color: #2c3e50;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219653;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d68910;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.data-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e1e5eb;
}

.data-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e1e5eb;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table input[type="number"],
.data-table input[type="text"] {
    width: 80px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5eb;
}

.section-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 5px;
}

.section-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 70px;
    left: 270px;
    right: 25px;
    z-index: 1000;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e1e5eb;
    z-index: 1;
}

.progress-step.completed:after {
    background: #27ae60;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #e1e5eb;
    color: #7f8c8d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.progress-step.active .step-number {
    background: #3498db;
    color: white;
}

.progress-step.completed .step-number {
    background: #27ae60;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #7f8c8d;
}

.progress-step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d5f4e6;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sidebar {
        width: 70px;
        overflow: hidden;
    }
    
    .sidebar-header h2,
    .user-info div,
    .sidebar-menu span,
    .menu-section,
    .sidebar-footer {
        display: none;
    }
    
    .user-info i {
        font-size: 24px;
    }
    
    .sidebar-menu a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-menu a i {
        margin-right: 0;
        font-size: 18px;
    }
    
    .progress-container {
        left: 90px;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 60px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
    }
    
    .sidebar-header {
        padding: 0;
        border: none;
    }
    
    .sidebar-menu {
        display: flex;
        padding: 0;
    }
    
    .sidebar-menu li {
        margin: 0;
    }
    
    .sidebar-menu a {
        padding: 15px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .progress-container {
        position: static;
        margin: 0 15px 20px;
    }
}
/* Add to your existing CSS */
.pending-badge {
    display: block;
    background: #f39c12;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 3px;
}

.approval-alert {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
}

.approval-alert i {
    color: #f39c12;
}

/* Active link styling */
.sidebar-menu a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
}

.menu-section {
    padding: 15px 20px 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #7f8c8d;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 10px;
}

