/* Common CSS for Enterprise Application */
:root {
    --primary-color: #00ACB6; /* Dark muted blue/indigo from Marina Bay logo */
    --accent-color: #5DADE2; /* Muted teal/light blue from Marina Bay logo */
    --sidebar-bg: #f8f9fa;
    --border-color: #dee2e6;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Top Bar */
.top-bar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-bar input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.user-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 200px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 0;
}

.sidebar-item {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.sidebar-item:hover {
    background: #e9ecef;
}

.sidebar-item.active {
    background: white;
    border-left: 3px solid var(--primary-color);
}

/* Main Content */
.main-content {
    margin-left: 200px;
    margin-top: 60px;
    padding: 40px;
    min-height: calc(100vh - 60px);
    background: white;
}

.page-header {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* Common Buttons */
.btn-create {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 32px;
    border-radius: 24px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 30px;
}

.btn-create:hover {
    background: #009BA4;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Add Team Member / Add Project Button Styling */
.btn-add-member {
    background-color: #00ACB6;
    color: white;
    border: 2px solid #00ACB6;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 24px;  /* Ellipse/pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-member:hover {
    background-color: #009BA4;
    border-color: #008B93;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 172, 182, 0.4);
}

.btn-add-member:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 172, 182, 0.3);
}

/* Pagination Styling */
.pagination-controls button {
    margin: 0 3px;
    min-width: 80px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-controls button:not(:disabled) {
    background-color: #00ACB6;
    color: white;
    border-color: #00ACB6;
}

.pagination-controls button:not(:disabled):hover {
    background-color: #009BA4;
    border-color: #008B93;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 172, 182, 0.3);
}

.pagination-controls button:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    color: #495057;
    font-weight: 500;
}

.pagination-container {
    background-color: #f8f9fa;
    padding: 15px 10px !important;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

/* User Management Tabs */
.role-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.role-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    border-bottom: 3px solid transparent;
}

.role-tab.active {
    color: #333;
    border-bottom-color: var(--primary-color);
    background: #f8f9fa;
}

.role-tab:hover {
    background: #f8f9fa;
}

/* Display records */
.display-records {
    margin-bottom: 20px;
    color: #666;
}

.display-records select {
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 0 8px;
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 12px;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
}

.action-icon:hover {
    background: #f8f9fa;
    color: #333;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    background-image: linear-gradient(135deg, rgba(4, 233, 246, 0.08) 0%, rgba(7, 152, 248, 0.08) 100%), url('../images/MBCCS Cover Page.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

/* Hero Section */
/* Contact Information */
.contact-info-section {
    margin-top: 40px;
    padding: 20px 30px;
    background: transparent;
    border-radius: 8px;
    border: none;
}

.contact-info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1.3rem;
    color: #495057;
    font-weight: 400;
}

.contact-info-line i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-label {
    color: #495057;
    font-weight: 400;
}

.contact-name {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-value {
    color: #495057;
    font-weight: 400;
}

.contact-separator {
    color: #6c757d;
    margin: 0 4px;
}

.hero-section {
    padding: 80px 0 60px 0;
    /*background: linear-gradient(135deg, rgba(4, 233, 246, 0.08) 0%, rgba(7, 152, 248, 0.08) 100%), #e9ecef;*/
    background-image: linear-gradient(135deg, rgba(4, 233, 246, 0.08) 0%, rgba(7, 152, 248, 0.08) 100%), url('../images/MBCCS Cover Page.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    text-align: center;
    min-height: calc(100vh - 60px); /* Account for top bar only, footer is fixed overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-bottom: 60px already set above to prevent content from being hidden behind fixed footer */
}

.hero-section .container {
    width: 100%;
    max-width: 100%;
}

.hero-section h1 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Modal Styling */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

/* Footer */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: 1px solid var(--border-color);
    background-color: #f8f9fa;
    min-height: 50px;
}

.app-footer small {
    font-size: 0.875rem;
}

/* No body padding needed - hero section min-height already accounts for footer */

.modal-footer {
    border-top: 1px solid var(--border-color);
}

/* Page Content */
.page-content { 
    display: none; 
}

.page-content.active { 
    display: block; 
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Override Bootstrap danger classes with Marina Bay colors */
.btn-danger {
    background-color: #00ACB6 !important;
    border-color: #00ACB6 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #009BA4 !important;
    border-color: #008B93 !important;
}

.btn-danger:focus,
.btn-danger:active {
    background-color: #008B93 !important;
    border-color: #007A82 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 172, 182, 0.5) !important;
}

.text-danger {
    color: #00ACB6 !important;
}

/* Badge colors with Marina Bay scheme */
.badge.bg-success {
    background-color: #00ACB6 !important;
}

/* Keep alert-danger as red for error messages */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}