* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #179CD8 0%, #1489BF 100%);
    min-height: 100vh;
    color: #333;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #179CD8 0%, #1489BF 100%);
    z-index: 9999;
}

#login-screen.active {
    display: flex;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #179CD8;
    margin-bottom: 8px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* Navbar */
.navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-brand h2 {
    color: #179CD8;
    font-size: 24px;
}

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

.navbar-user span {
    font-weight: 500;
    color: #179CD8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.tab-btn {
    background: transparent;
    border: none;
    color: #179CD8;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(23, 156, 216, 0.1);
}

.tab-btn.active {
    border-bottom-color: #179CD8;
    font-weight: 600;
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.balance-card h3 {
    color: #179CD8;
    margin-bottom: 15px;
    font-size: 18px;
}

.balance-display {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.balance-remaining {
    color: #179CD8;
}

.balance-total {
    color: #999;
    font-size: 24px;
}

.balance-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.balance-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #179CD8, #1489BF);
    transition: width 0.3s;
}

.balance-used {
    color: #666;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #179CD8;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #179CD8;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-google {
    background: white;
    color: #444;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.btn-block {
    width: 100%;
    padding: 14px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    background: #f0f0f0;
    color: #333;
}

.btn-sm:hover {
    background: #e0e0e0;
}

/* Icon Buttons */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-icon-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

/* Badge */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: #179CD8;
    color: white;
}

/* Messages */
.error-message {
    display: none;
    padding: 12px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    margin-top: 15px;
}

.error-message.show {
    display: block;
}

.success-message {
    display: none;
    padding: 12px;
    background: #efe;
    border: 1px solid #cfc;
    border-radius: 6px;
    color: #3c3;
    margin-top: 15px;
}

.success-message.show {
    display: block;
}

/* Info Section */
.info-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    color: #179CD8;
    margin-bottom: 15px;
}

.holiday-list {
    list-style: none;
}

.holiday-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.holiday-list li:last-child {
    border-bottom: none;
}

/* Request Form Container */
.request-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.request-form-container h2 {
    color: #179CD8;
    margin-bottom: 25px;
}

.calculation-display {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
}

.info-box {
    margin-top: 25px;
    padding: 20px;
    background: #f0f4ff;
    border-left: 4px solid #179CD8;
    border-radius: 6px;
}

.info-box h4 {
    color: #179CD8;
    margin-bottom: 10px;
}

.info-box ul {
    list-style-position: inside;
}

.info-box li {
    padding: 5px 0;
    color: #555;
}

/* Request List */
.request-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.request-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.request-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.request-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.request-status.approved {
    background: #d4edda;
    color: #155724;
}

.request-status.pending {
    background: #fff3cd;
    color: #856404;
}

.request-status.denied {
    background: #f8d7da;
    color: #721c24;
}

.request-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

/* Calendar Controls */
.calendar-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.view-toggle, .calendar-period-toggle, .team-filter-toggle {
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn, .period-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-btn:hover, .period-btn:hover {
    background: #f0f4ff;
    color: #179CD8;
}

.view-btn.active, .period-btn.active {
    background: #179CD8;
    color: white;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: #179CD8;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #1489BF;
}

#current-period-label {
    font-weight: 600;
    color: #179CD8;
    min-width: 200px;
    text-align: center;
}

/* Calendar List View */
.calendar-view {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-item {
    padding: 15px;
    border-left: 4px solid #179CD8;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.calendar-item strong {
    color: #179CD8;
}

/* Calendar Grid View */
.calendar-grid-view {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.calendar-grid-view::-webkit-scrollbar {
    height: 12px;
}

.calendar-grid-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.calendar-grid-view::-webkit-scrollbar-thumb {
    background: #179CD8;
    border-radius: 6px;
}

.calendar-grid-view::-webkit-scrollbar-thumb:hover {
    background: #1489BF;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: max-content;
    min-width: 100%;
}

.calendar-header {
    background: #179CD8;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.calendar-day {
    background: white;
    min-height: 100px;
    padding: 10px;
    position: relative;
}

.calendar-day.other-month {
    background: #f5f5f5;
    color: #999;
}

.calendar-day.today {
    background: #f0f4ff;
}

.calendar-day-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.calendar-day.other-month .calendar-day-number {
    color: #999;
}

.calendar-day.today .calendar-day-number {
    background: #179CD8;
    color: white;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.calendar-pto-item {
    background: #179CD8;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-pto-item:hover {
    background: #1489BF;
}

/* Week View */
.week-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.week-day {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e0e0e0;
}

.week-day.today {
    border-color: #179CD8;
    background: #f0f4ff;
}

.week-day-header {
    font-weight: 600;
    color: #179CD8;
    margin-bottom: 10px;
    text-align: center;
}

.week-pto-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-pto-item {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    border-left: 3px solid #179CD8;
}

.week-pto-item strong {
    color: #179CD8;
    display: block;
    margin-bottom: 3px;
}

/* Today View */
.today-view {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.today-header {
    font-size: 24px;
    font-weight: 600;
    color: #179CD8;
    margin-bottom: 20px;
}

.today-pto-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 20px;
}

.filter-bar select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
}

/* Table */
table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table th {
    background: #179CD8;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background: #f8f9fa;
}

.subtitle {
    color: #179CD8;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .balance-cards {
        grid-template-columns: 1fr;
    }

    .tabs {
        overflow-x: auto;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

/* Employee and Manager screens should have white background */
#employee-screen,
#manager-screen {
    background: #f5f5f5;
    min-height: 100vh;
}

#employee-screen.active,
#manager-screen.active {
    background: #f5f5f5;
}

/* Notification Bell Styles */
.notification-bell {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
}

.bell-icon {
    font-size: 24px;
    display: inline-block;
    transition: transform 0.2s;
}

.notification-bell:hover .bell-icon {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    width: 400px;
    max-height: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.btn-link {
    background: none;
    border: none;
    color: #179CD8;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e8f4f8;
}

.notification-item.unread:hover {
    background: #d4ebf5;
}

.notification-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
}

.notification-type.approved {
    background: #d4edda;
    color: #155724;
}

.notification-type.denied {
    background: #f8d7da;
    color: #721c24;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.notification-message {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 12px;
}

.empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}
