/* Main Styles for ARCA HR System */

:root {
    --primary-color: #304878;
    --secondary-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: #1e3464;
}

/* Layout */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    text-decoration: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li a i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.sidebar-menu li a span {
    opacity: 1;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sidebar-collapsed .sidebar-menu li a span {
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sidebar-menu .badge {
    margin-left: auto;
}

.top-navbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.sidebar-collapsed .top-navbar {
    left: var(--sidebar-collapsed-width);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

.page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--gray-color);
    cursor: pointer;
    padding: 0 10px;
}

.dropdown-toggle::after {
    display: none;
}

.user-dropdown {
    display: flex;
    align-items: center;
}

.user-avatar,
.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
}

.user-avatar {
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    margin-right: 8px;
}

.notification-dropdown {
    width: 320px;
    padding: 0;
    max-height: 75vh;
    overflow-y: auto;
}

.dropdown-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px 15px;
}

.notification-item {
    padding: 5px 0;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--gray-color);
    text-align: right;
}

.main-content {
    position: relative;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    transition: all 0.3s;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.footer {
    margin-left: var(--sidebar-width);
    padding: 15px 20px;
    background-color: white;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: var(--gray-color);
    transition: all 0.3s;
}

.sidebar-collapsed .footer {
    margin-left: var(--sidebar-collapsed-width);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

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

.card-body {
    padding: 20px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e3464;
    border-color: #1e3464;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Badge styles */
.badge {
    padding: 5px 10px;
    border-radius: 50rem;
    font-weight: 500;
}

/* Tab styles */
.nav-tabs .nav-link {
    border: none;
    color: var(--gray-color);
    padding: 10px 20px;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

/* Notification styles */
.notification-list {
    border-radius: 10px;
    overflow: hidden;
}

.notification-item {
    border-left: 4px solid transparent;
    padding: 15px 20px;
    transition: all 0.2s ease;
}

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

.notification-item.unread {
    border-left-color: var(--primary-color);
    background-color: rgba(48, 72, 120, 0.05);
}

.notification-title {
    font-weight: 600;
    color: #333;
}

.notification-message {
    color: #666;
    margin-bottom: 10px;
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

.notification-actions {
    margin-top: 10px;
}

/* Leave status styles */
.leave-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.leave-status.pending {
    background-color: #fff8e1;
    color: #ff9800;
}

.leave-status.approved {
    background-color: #e8f5e9;
    color: #4caf50;
}

.leave-status.rejected {
    background-color: #ffebee;
    color: #f44336;
}

/* Calendar styles */
.calendar-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.calendar-day {
    min-height: 100px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.calendar-day.current-day {
    background-color: #e8f4ff;
    border-color: #a0c4ff;
}

.calendar-day.weekend {
    background-color: #f5f5f5;
}

.calendar-day.empty {
    background-color: transparent;
    border: none;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
}

.current-day .calendar-day-number {
    background-color: var(--primary-color);
    color: white;
}

.calendar-event {
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    padding: 5px 8px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event.leave.approved {
    background-color: var(--success-color);
}

.calendar-event.leave.pending {
    background-color: var(--warning-color);
    color: #212529;
}

.calendar-event.holiday {
    background-color: var(--info-color);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    background-image: linear-gradient(rgba(48, 72, 120, 0.8), rgba(48, 72, 120, 0.9)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
}

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

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    height: 60px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Form styles */
.form-control {
    border-radius: 6px;
    height: calc(2.5rem + 2px);
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(48, 72, 120, 0.25);
}

.form-select {
    border-radius: 6px;
    height: calc(2.5rem + 2px);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.password-toggle {
    cursor: pointer;
}

/* Stats dashboard */
.stat-card {
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-card .card-body {
    display: flex;
    align-items: center;
}

.stat-icon {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

/* Employee directory styles */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.employee-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.employee-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.employee-info {
    padding: 20px;
    text-align: center;
}

.employee-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.employee-position {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.employee-department {
    display: inline-block;
    background-color: #e9ecef;
    color: var(--gray-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* Profile styles */
.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(48, 72, 120, 0.03);
}

/* Pagination styles */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 8px 16px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive styles */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar-visible .sidebar {
        transform: translateX(0);
        width: 250px;
    }
    
    .top-navbar,
    .main-content,
    .footer {
        left: 0;
        margin-left: 0;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-visible .overlay {
        display: block;
    }
    
    .employee-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-photo,
    .profile-photo-placeholder {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .user-name {
        display: none;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .top-navbar {
        padding: 0 15px;
    }
}

/* Print styles */
@media print {
    .sidebar, .top-navbar, .footer, .btn, .no-print {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Fix for Türkçe characters */
body, input, textarea, select, button {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}