/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* App container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header h1 {
    color: #4a154b;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-week {
    font-weight: 600;
    color: #4a154b;
    min-width: 200px;
    text-align: center;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.btn-primary {
    background: #007a5a;
    color: white;
}

.btn-primary:hover {
    background: #006644;
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.sync-icon {
    font-size: 1rem;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin-bottom: 1rem;
    color: #4a154b;
}

.user-controls {
    display: flex;
    gap: 0.5rem;
}

.user-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

.user-item input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 0.75rem;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
}

.user-email {
    font-size: 0.75rem;
    color: #6c757d;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.legend h4 {
    margin-bottom: 1rem;
    color: #4a154b;
    font-size: 0.875rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.sick {
    background-color: #0d6efd;
}

.status-indicator.leave {
    background-color: #ffc107;
}

.status-indicator.missing_report {
    background-color: #dc3545;
}

/* Calendar */
.calendar-container {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.calendar-header {
    margin-bottom: 2rem;
}

.calendar-header h2 {
    color: #4a154b;
    font-size: 1.25rem;
}

.calendar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 500px;
}

.day-header {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.day-header:last-child {
    border-right: none;
}

.day-cell {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.day-cell:last-child {
    border-right: none;
}

.day-date {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.day-date.today {
    color: #007a5a;
}

.status-list {
    flex: 1;
}

.status-item {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-item.sick {
    background: #cfe2ff;
    border-left: 3px solid #0d6efd;
}

.status-item.leave {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.status-item.missing_report {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

.status-user {
    font-weight: 500;
    color: #333;
}

.status-text {
    color: #6c757d;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Loading states */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007a5a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.toast {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
    margin-bottom: 0.5rem;
    min-width: 300px;
    border-left: 4px solid #007a5a;
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .header-controls {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .week-navigation {
        justify-content: center;
    }

    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 300px;
    }

    .calendar-container {
        padding: 1rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .day-header {
        display: none;
    }

    .day-cell {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        min-height: auto;
        padding: 1rem;
    }

    .day-date {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: #495057;
}

.empty-state p {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Sprint Form Page */
.sprint-form-page {
    width: 100%;
    padding: 2rem 2.5rem 3rem;
    box-sizing: border-box;
}

.sprint-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sprint-form-title {
    font-size: 1.75rem;
    color: #212529;
}

.sprint-form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.sprint-form-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.sprint-form-field {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sprint-form-field .input {
    margin-bottom: 0;
}

.sprint-form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performer-goals-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.performer-goals-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.performer-goals-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    background: #f8f9fa;
}

.performer-goals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.performer-goals-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #212529;
}

.goal-entry {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.goal-entry textarea {
    flex: 1;
    min-height: 110px;
    resize: vertical;
    margin-bottom: 0;
    font-family: inherit;
}

.goal-entry textarea + .goal-entry textarea {
    margin-top: 0.5rem;
}

.goal-entry .remove-goal-btn {
    margin-top: 0.25rem;
}

.performer-goals-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sprint-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.sprint-form-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    background: #fdfdfd;
}

.sprint-form-empty p {
    margin-bottom: 1rem;
}

.sprint-form-message {
    text-align: center;
    color: #6c757d;
    font-size: 0.95rem;
}

.sprint-form-page .btn-link {
    background: transparent;
    border: none;
    color: #dc3545;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .sprint-form-page {
        padding: 1.5rem 1rem 2.5rem;
    }

    .sprint-form-container {
        padding: 1.5rem;
    }
}

/* Presence Lists */
.presence-section {
    margin-top: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.presence-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.presence-header h3 {
    color: #4a154b;
    font-size: 1.125rem;
    margin: 0;
}

.presence-last-updated {
    font-size: 0.75rem;
    color: #6c757d;
}

.presence-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.presence-list-container {
    padding: 1.5rem;
}

.presence-list-container:first-child {
    border-right: 1px solid #e9ecef;
}

.presence-list-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.presence-list-title .status-indicator {
    margin-right: 0.75rem;
}

.status-indicator.active {
    background-color: #28a745;
}

.status-indicator.inactive {
    background-color: #6c757d;
}

.presence-count {
    margin-left: auto;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: normal;
}

.presence-list {
    /* Remove max-height and overflow to let lists expand naturally */
}

.presence-user-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
    transition: background-color 0.2s ease;
}

.presence-user-item:hover {
    background: #e9ecef;
}

.presence-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 0.75rem;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
}

.presence-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.presence-user-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.presence-user-info {
    flex: 1;
    min-width: 0;
}

.presence-user-name {
    font-weight: 500;
    color: #333;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.presence-user-status {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.presence-user-status-emoji {
    flex-shrink: 0;
}

.presence-empty {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
    font-size: 0.875rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #4a154b;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-body .user-controls {
    padding: 1rem 1.5rem 0;
    display: flex;
    gap: 0.5rem;
}

.modal-body .user-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-notice {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.modal-footer .legend h4 {
    margin-bottom: 1rem;
    color: #4a154b;
    font-size: 0.875rem;
}

.modal-footer .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sidebar adjustments for presence lists */
.sidebar .presence-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar .presence-header h3 {
    color: #4a154b;
    font-size: 1.125rem;
    margin: 0;
}

.sidebar .presence-last-updated {
    font-size: 0.75rem;
    color: #6c757d;
}

.sidebar .presence-lists {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar .presence-list-container {
    padding: 1.5rem;
    flex: 1;
}

.sidebar .presence-list-container:first-child {
    border-bottom: 1px solid #e9ecef;
}

/* Responsive design for presence lists */
@media (max-width: 768px) {
    .sidebar .presence-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body .user-controls,
    .modal-body .user-list,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Login Screen */
.login-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-box h2 {
    color: #4a154b;
    margin-bottom: 1rem;
}

.login-box p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.slack-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: #4A154B;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.slack-login-btn:hover {
    background: #611f69;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 21, 75, 0.3);
}

.login-error {
    font-size: 0.875rem;
}

.input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: #007a5a;
}

/* Tabs */
.tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 0 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: #495057;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #007a5a;
    border-bottom-color: #007a5a;
}

.tab-content {
    display: none;
    flex: 1;
    overflow: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

.tab-header {
    background: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Performance Dashboard */
.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.performance-title {
    margin: 0;
    color: #4a154b;
    font-size: 1.5rem;
}

.performance-header-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.icon-button {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #495057;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus {
    background: #f1f3f5;
    color: #212529;
    outline: none;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

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

.performance-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #f5f7fa;
}

.sprint-column {
    flex: 0 0 380px;
    max-width: 420px;
    padding: 2rem;
    border-right: 1px solid #e9ecef;
    background: #fff;
    overflow-y: auto;
}

.sprint-column-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sprint-column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.sprint-column-header .title-group {
    flex: 1;
}

.sprint-name {
    margin: 0;
    font-size: 1.25rem;
    color: #343a40;
}

.sprint-meta {
    margin: 0.5rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.sprint-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.sprint-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 180px;
    z-index: 20;
    display: flex;
    flex-direction: column;
}

.sprint-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    color: #495057;
}

.goal-group {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.goal-group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.goal-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #343a40;
    padding-bottom: 0.5rem;
}

.goal-group-count {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.05em;
}

.goal-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
}

.goal-entry + .goal-entry {
    border-top: 1px solid #f1f3f5;
}

.goal-entry.approved,
.goal-entry.done {
    border-left: none;
}

.goal-entry-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.65rem;
    color: #495057;
    overflow: hidden;
    flex-shrink: 0;
}

.goal-entry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goal-entry .status-pill {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #495057;
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.goal-entry.done .status-pill {
    background: #fff3cd;
    color: #856404;
}

.goal-entry.approved .status-pill {
    background: #d4edda;
    color: #155724;
}

.goal-entry .goal-text {
    color: #495057;
    font-size: 0.8rem;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sprint-empty-state {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.reports-column {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #f9fafc;
    min-width: 0;
}

.reports-column-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
}

.reports-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reports-column-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #4a154b;
}

.reports-date-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reports-date-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.reports-date-label {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 600;
}

.today-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #28a745;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
    }
}

.performer-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.performer-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-left: 4px solid transparent;
}

.performer-card.has-report {
    background: #f1f9f5;
    border-left-color: #2f9e44;
}

.performer-card.missing-after-deadline {
    background: #fff5f5;
    border-left-color: #e03131;
}

.performer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
    overflow: hidden;
    flex-shrink: 0;
}

.performer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #dfe3e6;
    color: #495057;
    font-weight: 600;
}

.performer-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.performer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.performer-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
}

.performer-card-summary {
    font-size: 0.875rem;
    color: #495057;
}

.performer-card-report {
    font-size: 0.9rem;
    color: #343a40;
    line-height: 1.5;
    white-space: pre-wrap;
}

.performer-card-empty {
    font-style: italic;
    color: #6c757d;
}

.performer-card-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dashboard-section {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-section h3 {
    color: #4a154b;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.no-data {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-controls .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #6c757d;
}

.detail-item.done {
    border-left-color: #ffc107;
}

.detail-item.approved {
    border-left-color: #28a745;
}

.detail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.detail-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.task-reassign-select-detail {
    padding: 0.375rem 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
}

.task-reassign-select-detail:focus {
    outline: none;
    border-color: #007a5a;
}

.detail-item .title {
    font-weight: 600;
    color: #343a40;
    flex: 1;
}

.detail-item .meta {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.detail-item .report-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #495057;
}

.performer-detail {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #f5f7fa;
}

.performer-detail-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.performer-detail-title h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.detail-subtitle {
    margin: 0.25rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.performer-detail-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.performer-detail-sidebar {
    flex: 0 0 240px;
    background: #fff;
    border-right: 1px solid #e9ecef;
    padding: 0.25rem 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.performer-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.performer-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performer-sidebar-name {
    font-size: 0.875rem;
    color: #343a40;
}

.performer-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.performer-sidebar-item.active {
    background: #e9ecef;
    color: #212529;
}

.performer-sidebar-item:hover {
    background: #f1f3f5;
}

.performer-sidebar-item.has-report {
    background: #d4edda;
    border-left: 3px solid #28a745;
}

.performer-sidebar-item.missing-after-deadline {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

.performer-sidebar-item.on-leave {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.performer-sidebar-item.has-report:hover {
    background: #c3e6cb;
}

.performer-sidebar-item.missing-after-deadline:hover {
    background: #f5c6cb;
}

.performer-sidebar-item.on-leave:hover {
    background: #ffeaa7;
}

.performer-detail-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.performer-body {
    display: flex;
    flex: 1;
    min-height: 0;
    background: #f5f7fa;
}

.performer-sprint-column {
    flex: 0 0 360px;
    max-width: 400px;
    padding: 2rem;
    background: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.sprint-column-section {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 0;
    box-shadow: none;
    border-top: 1px solid #e9ecef;
}

.sprint-column-section:first-of-type {
    padding-top: 0;
    border-top: none;
}

.performer-main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Report Form */
.report-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
}

.report-form textarea:focus {
    outline: none;
    border-color: #007a5a;
}

.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #6c757d;
}

.report-form .form-notice {
    display: none;
}

.report-form.submitted textarea,
.report-form.submitted .char-count,
.report-form.submitted button {
    display: none;
}

.report-form.submitted .form-notice {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: #495057;
}

/* Goals and Tasks Lists */
.goals-list,
.tasks-list,
.reports-list,
.pending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.goal-item,
.task-item,
.report-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid #007a5a;
    transition: all 0.2s ease;
}

.goal-item:hover,
.task-item:hover,
.report-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.goal-item.done,
.task-item.done {
    border-left-color: #ffc107;
    opacity: 0.8;
}

.goal-item.approved,
.task-item.approved {
    border-left-color: #28a745;
}

.item-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.item-description {
    flex: 1;
    color: #333;
    font-size: 0.875rem;
    line-height: 1.5;
    order: 2;
    width: 100%;
}

.item-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    order: 1;
    flex-wrap: wrap;
    align-self: flex-start;
}

.item-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.item-status.assigned {
    background: #e9ecef;
    color: #495057;
}

.item-status.done {
    background: #fff3cd;
    color: #856404;
}

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

.item-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.item-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Reports History */
.reports-history {
    max-height: 400px;
    overflow-y: auto;
}

.report-item {
    border-left-color: #6c757d;
}

.report-date {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.report-text {
    color: #333;
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Sprint Info */
.sprint-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sprint-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.sprint-label {
    font-weight: 600;
    color: #495057;
}

.sprint-value {
    color: #333;
}

/* Starred Items */
.starred-header {
    background: #fff;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.starred-header h2 {
    color: #4a154b;
    margin-bottom: 0.5rem;
}

.starred-header p {
    color: #6c757d;
}

.starred-list {
    flex: 1;
    padding: 2rem;
    overflow: auto;
}

.starred-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #ffc107;
}

.starred-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.starred-item-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.starred-item-type.goal {
    background: #d4edda;
    color: #155724;
}

.starred-item-type.task {
    background: #cfe2ff;
    color: #084298;
}

.starred-item-type.report {
    background: #fff3cd;
    color: #856404;
}

.starred-item-content {
    color: #333;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.starred-item-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
}

.starred-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* User Info Badge */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #d4edda;
    color: #155724;
}

.role-badge.performer {
    background: #cfe2ff;
    color: #084298;
}

/* Performers List */
.performers-list {
    padding: 1.5rem;
}

.performer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.performer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.performer-actions {
    display: flex;
    gap: 0.5rem;
}

.performer-selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.performer-user-item {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
    padding-right: 0.75rem;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.performer-user-item .performer-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.performer-user-item .user-avatar {
    flex-shrink: 0;
}

.performer-user-item .performer-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.performer-user-item .performer-name {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.2;
}

.performer-user-item .performer-email {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    word-break: break-word;
}

.performer-user-item .performer-row-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.performer-user-item .performer-view-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.performer-user-item.active {
    border-color: #c6f0d5;
    background: #f5fdf8;
    box-shadow: 0 0 0 1px #c6f0d5 inset;
}

.performer-user-item:hover {
    background: #f8f9fa;
}

.performer-row-actions {
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
}

.performer-row-actions .btn {
    white-space: nowrap;
}

/* Sprint Form */
.sprint-form {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.875rem;
}

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

.goals-form-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.goal-form-item {
    display: flex;
    gap: 0.5rem;
    align-items: start;
}

.goal-form-item select {
    flex: 0 0 150px;
}

.goal-form-item input {
    flex: 1;
}

.btn-icon {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

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

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

/* Settings Form */
.settings-form {
    padding: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.settings-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.settings-form input:focus {
    outline: none;
    border-color: #007a5a;
}

/* Modal Large */
.modal-content.large {
    max-width: 800px;
}

/* Reports Modal */
.reports-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.reports-modal-body {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: 400px;
}

.reports-modal-list {
    width: 40%;
    max-height: 420px;
    overflow-y: auto;
    border-right: 1px solid #e9ecef;
    padding-right: 1rem;
}

.reports-modal-details {
    flex: 1;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.reports-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.reports-item:hover {
    background: #e9ecef;
}

.reports-item.active {
    border: 2px solid #007a5a;
    background: #e0f2eb;
}

.reports-item h4 {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    color: #333;
}

.reports-item p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.25rem 0;
}

.reports-item .report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.reports-item .missing {
    color: #dc3545;
    font-weight: 600;
}

.reports-item .star-container {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.reports-detail-section {
    margin-bottom: 1.5rem;
}

.reports-detail-section h4 {
    margin-bottom: 0.75rem;
    color: #4a154b;
}

.reports-detail-section .item-meta {
    margin-top: 0.5rem;
}

.reports-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reports-detail-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    position: relative;
}

.reports-detail-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.reports-detail-card .card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.reports-detail-card p {
    font-size: 0.8rem;
    color: #495057;
    margin: 0.25rem 0;
}

.reports-detail-card .card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.reports-detail-card .card-status.assigned {
    color: #495057;
}

.reports-detail-card .card-status.done {
    color: #ffc107;
}

.reports-detail-card .card-status.approved {
    color: #28a745;
}

.reports-detail-card .card-note {
    font-style: italic;
    color: #6c757d;
    font-size: 0.75rem;
}

.reports-detail-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.assign-task-form {
    display: flex;
    gap: 0.5rem;
}

.assign-task-form input {
    flex: 1;
}

/* Utility Classes */
.admin-only {
    display: none;
}

.performer-only {
    display: none;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.star-btn {
    background: transparent;
    border: none;
    color: #adb5bd;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-btn:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.star-btn.starred {
    color: #ffc107;
}

/* Responsive Updates */
@media (max-width: 992px) {
    .performance-body,
    .performer-body {
        flex-direction: column;
    }

    .sprint-column,
    .performer-sprint-column {
        flex: 1;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 1.5rem;
    }

    .reports-column,
    .performer-main {
        padding: 1.5rem;
    }

    .performer-detail-body {
        flex-direction: column;
    }

    .performer-detail-sidebar {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .tabs {
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-header {
        padding: 1rem;
    }
    .performance-header,
    .performer-detail-header {
        padding: 1rem;
    }

    .sprint-column,
    .performer-sprint-column,
    .reports-column,
    .performer-main {
        padding: 1rem;
    }

    .performer-card {
        flex-direction: column;
    }
    
    .goal-form-item {
        flex-direction: column;
    }
    
    .goal-form-item select {
        flex: 1;
        width: 100%;
    }

    .reports-modal-body {
        flex-direction: column;
    }

    .reports-modal-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .reports-modal-details {
        width: 100%;
        padding-right: 0;
    }
}

/* On Leave Section */
.on-leave-section {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ffc107;
}

.on-leave-title {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.on-leave-title::before {
    content: "🏖️";
    font-size: 1.25rem;
}

.on-leave-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.on-leave-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #fff9e6;
    border-radius: 8px;
    border: 1px solid #ffe8a1;
    transition: all 0.2s ease;
}

.on-leave-item:hover {
    background: #fff3cd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.on-leave-item .performer-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.on-leave-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.on-leave-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.on-leave-badge {
    font-size: 0.75rem;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .on-leave-list {
        grid-template-columns: 1fr;
    }
    
    .on-leave-section {
        padding: 1rem;
    }
}

/* Tasks Board / Kanban */
.tasks-board-header {
    background: #fff;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.tasks-board-header h2 {
    color: #4a154b;
    margin-bottom: 0.5rem;
}

.tasks-board-header p {
    color: #6c757d;
}

.kanban-board {
    flex: 1;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: auto;
    background: #f5f7fa;
}

.kanban-column {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-height: calc(100vh - 250px);
}

.kanban-column-header {
    padding: 1.25rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.kanban-column-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.task-count {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.kanban-column-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kanban-task-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.kanban-task-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.kanban-task-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.kanban-task-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    overflow: hidden;
    flex-shrink: 0;
}

.kanban-task-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kanban-task-performer {
    flex: 1;
    min-width: 0;
}

.kanban-task-performer-name {
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kanban-task-description {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.kanban-task-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.kanban-task-actions select {
    flex: 1;
    min-width: 120px;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #fff;
    cursor: pointer;
}

.kanban-task-actions select:focus {
    outline: none;
    border-color: #007a5a;
}

.kanban-task-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.kanban-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f3f5;
    font-size: 0.75rem;
    color: #6c757d;
}

.kanban-task-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 1200px) {
    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .tasks-board-header {
        padding: 1.5rem 1rem;
    }
    
    .kanban-column {
        max-height: 500px;
    }
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}
