/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --dark-blue: #1a237e;
    --yellow: #ffd700;
    --green: #4caf50;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --font-primary: 'Poppins', 'Inter', sans-serif;
    
    /* Sidebar and Dashboard Variables */
    --sidebar-width: 250px;
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --border-color: #dcdde1;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, var(--font-primary);
}

body {
    background-color: var(--light-gray);
    font-weight: 400;
    line-height: 1.6;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-blue), #283593);
}

.login-form {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.btn {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--dark-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #283593;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.2);
}

.dashboard {
    padding: 2rem;
}

.dashboard-header {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-header {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background-color: var(--dark-blue);
    color: var(--white);
    font-weight: 500;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: var(--green);
    color: var(--white);
}

.alert-error {
    background-color: #f44336;
    color: var(--white);
}

/* ========================================
   SIDEBAR STYLES
   ======================================== */

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    height: 100vh;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.sidebar-header {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-header .app-logo {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 70px;
    height: auto;
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.sidebar-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-menu a i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background-color: var(--accent-color);
    color: white;
}

/* Sidebar Sections (Collapsible) */
.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-section-title {
    color: rgb(30, 241, 11);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar-section-title:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-section-title i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.sidebar-section-title .collapse-arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.sidebar-section-title.collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

/* STCW Section Specific Styling */
#stcwToggle {
    color: rgb(124, 252, 0) !important;
}

#stcwToggle:hover {
    color: rgb(124, 252, 0) !important;
}

#stcwToggle i {
    color: rgb(124, 252, 0) !important;
}

/* Sidebar Section Menu */
.sidebar-section-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-section-menu.collapsed {
    max-height: 0;
    display: none;
}

.sidebar-section-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-section-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-section-menu a i {
    margin-right: 0.6rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.sidebar-section-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.sidebar-section-menu a.active {
    background-color: var(--accent-color);
    color: white;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
}

.version-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    max-width: 1600px;
    width: 100%;
}

/* Action cards */
.action-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Stats cards */
.stat-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
}

.stat-card .number {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--dark-blue);
} 