/* Base styles for Thinkspace Resourcing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
}

/* Header Bar */
.header-bar {
    background: #00a6e2;
    color: white;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    height: 60px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-image {
    width: auto;
    height: 30px;
    filter: brightness(0) invert(1);
}

.header-project-name {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 20px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.8;
    position: relative;
}

.single-role {
    color: rgba(255, 255, 255, 0.8);
}

.role-switcher {
    position: relative;
    display: inline-block;
}

.current-role-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.3s ease;
}

.current-role-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.role-switcher.active .dropdown-arrow {
    transform: rotate(180deg);
}

.role-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    z-index: 1001;
    display: none;
    margin-top: 4px;
}

.role-switcher.active .role-dropdown {
    display: block;
}

.role-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

.role-option:last-child {
    border-bottom: none;
}

.role-option:hover {
    background-color: #f8f9fa;
}

.role-option[data-current="true"] {
    background-color: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.current-indicator {
    color: #4caf50;
    font-weight: bold;
    font-size: 12px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Main Content */
.main-content {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 12px;
}

/* Footer Bar */
.footer-bar {
    background: #00a6e2;
    color: white;
    padding: 0 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-image {
    width: auto;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .logo-section {
        margin-bottom: 10px;
    }

    .navigation {
        gap: 10px;
    }

    .user-section {
        margin-top: 10px;
    }

    .user-info {
        display: none;
    }

    .main-content {
        padding: 15px;
    }
}

/* Additional base styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #00a6e2;
    color: white;
}

.btn-primary:hover {
    background-color: #32b7ff;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.card {
    background: white;
    overflow: hidden;
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Messages and alerts */
.messages-container {
    margin-bottom: 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}
