/* Global styles */
:root {
    --background-start: #F0EEE6;
    --background-end: #FAF9F5;
    --border-color: #87867F;
    --text-color: #29261B;
    --focus-outline: #BA5B38;
    --scrollbar-thumb: rgba(135, 134, 127, 0.8);
    --scrollbar-track: rgba(0, 0, 0, 0);
    --nav-background: #E1DFD7;
    --nav-hover-bg: rgba(135, 134, 127, 0.2);
    --nav-active-border: #C7C5BD;
    --icon-background: var(--background-start);
    --icon-border: #C9C4B5;
    --icon-active-border: #A29E8A;
    --icon-stroke: #BA5B38;
    --icon-hover-stroke: #BA5B38;
    --nav-height: 48px;
    --bottom-nav-height: 65px;
    
    /* Task System Colors */
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --step-active: #8b5cf6;
    --step-completed: #10b981;
    --step-pending: #9ca3af;
    --modal-backdrop: rgba(0, 0, 0, 0.6);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background: linear-gradient(var(--background-start), var(--background-end));
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

button {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.app-container {
    height: 100vh;
    display: grid;
    grid-template-rows: var(--nav-height) 1fr var(--bottom-nav-height);
    background: linear-gradient(var(--background-start), var(--background-end));
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Top Navigation Bar */
.top-nav {
    height: var(--nav-height);
    background-color: var(--background-start);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
}

.breadcrumb-separator {
    margin: 0 0.35rem;
    opacity: 0.7;
    color: #888;
    font-size: 1rem;
    font-weight: 400;
}

#current-page {
    color: var(--focus-outline);
    font-weight: 400;
    font-size: 1rem;
}

.sapient-title {
    font-family: Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

/* Main Content Area */
.main-content {
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow: hidden;
    position: relative;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: contentFadeIn 0.3s ease-in-out forwards;
    transition: opacity 0.3s ease;
}

.content-wrapper h1 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    flex-shrink: 0;
}

.content-wrapper p {
    margin-bottom: 18px;
    color: var(--text-color);
    opacity: 0.8;
    flex-shrink: 0;
}

/* Task Tabs */
.task-tabs {
    display: flex;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(135, 134, 127, 0.1);
    flex-shrink: 0;
}

.task-tab {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(135, 134, 127, 0.05);
    color: var(--text-color);
    opacity: 0.7;
    border: none;
}

.task-tab.active {
    background-color: var(--focus-outline);
    color: white;
    opacity: 1;
}

.task-tab:hover:not(.active) {
    background-color: rgba(135, 134, 127, 0.1);
    opacity: 1;
}

/* Task Content Area */
.task-content-area {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* Individual Task Cards */
.task-cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    overflow: hidden;
    padding-right: 4px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hide scrollbar but keep functionality */
.task-cards-container::-webkit-scrollbar {
    width: 6px;
}

.task-cards-container::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 3px;
}

.task-cards-container::-webkit-scrollbar-track {
    background-color: transparent;
}

.task-card.compact {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(135, 134, 127, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transform-origin: center top;
}

.task-card.compact:hover:not(.expanded) {
    transform: translateY(-1px);
    box-shadow: var(--card-shadow-hover);
}

/* ACCORDION EXPANDED STATE */
.task-card.compact.expanded {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Focus Mode - When a task is expanded, fade others */
.task-cards-container.focus-mode .task-card.compact:not(.expanded) {
    opacity: 0.12;
    pointer-events: none;
    transform: scale(0.94) translateY(20px);
    filter: blur(2px);
}

.task-cards-container.focus-mode .task-card.compact.expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    margin: 0;
    border-radius: 12px;
    max-height: 100%;
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--card-shadow-hover);
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 8px 16px;
    gap: 16px;
    background-color: white;
    flex-shrink: 0;
}



.task-card.compact .task-card-content {
    flex: 1;
}

.task-card.compact .task-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.3;
}



.task-card.compact .task-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.4;
    margin: 0;
}





/* Expanded Task Body */
.task-expanded-body {
    display: none;
    flex: 1;
    flex-direction: column;
    background: linear-gradient(var(--background-start), var(--background-end));
    overflow: hidden;
}

.task-card.expanded .task-expanded-body {
    display: flex;
}

/* Steps Header with Progress Bar */
.task-steps-header {
    flex-shrink: 0;
    padding: 8px 16px;
    background: white;
}

.task-full-description {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.4;
}

.task-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-progress-text {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.task-progress-percentage {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.task-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(135, 134, 127, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--step-active));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

/* Step Content Area - No Scrolling */
.task-step-content-area {
    flex: 1;
    overflow: hidden;
    padding: 16px;
    background: white;
}

.task-step-content-area::-webkit-scrollbar {
    width: 6px;
}

.task-step-content-area::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 3px;
}

.task-step-content-area::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Step Interface */
.step-container {
    background-color: white;
    border: 1px solid rgba(135, 134, 127, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(135, 134, 127, 0.1);
}

.step-header-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--step-active);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-number.completed {
    background-color: var(--step-completed);
}

.step-number.pending {
    background-color: var(--step-pending);
}

.step-instruction {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.step-description {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
    width: 100%;
    margin-top: 0;
}

/* Media Help Section */
.step-media-help {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(135, 134, 127, 0.1);
}

.media-help-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(135, 134, 127, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-help-btn:hover {
    background-color: var(--focus-outline);
    transform: translateY(-1px);
}

.media-help-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-color);
    opacity: 0.8;
}

.media-help-btn:hover svg {
    stroke: white;
    opacity: 1;
}

.step-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Step Tips */
.step-tips {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--info-color);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.step-tips h4 {
    color: var(--info-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-tips ul {
    list-style: none;
    padding: 0;
}

.step-tips li {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    position: relative;
    padding-left: 20px;
}

.step-tips li:before {
    content: '•';
    color: var(--info-color);
    position: absolute;
    left: 0;
}

/* Input Fields */
.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.input-field {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px;
    border: 2px solid rgba(135, 134, 127, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: var(--focus-outline);
    box-shadow: 0 0 0 3px rgba(186, 91, 56, 0.1);
}

.input-field::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

/* Photo Capture */
.photo-capture {
    margin-bottom: 24px;
}

.photo-upload-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    border: 2px dashed rgba(135, 134, 127, 0.3);
    border-radius: 12px;
    background-color: rgba(135, 134, 127, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.photo-upload-btn:hover {
    border-color: var(--focus-outline);
    background-color: rgba(186, 91, 56, 0.05);
}

.photo-upload-btn svg {
    width: 40px;
    height: 40px;
    stroke: var(--text-color);
    opacity: 0.6;
    margin-bottom: 8px;
}

.photo-upload-btn span {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Action Buttons */
.step-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(135, 134, 127, 0.1);
}

.step-btn {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
}

.step-btn-primary {
    background-color: var(--success-color);
    color: white;
}

.step-btn-primary:hover {
    background-color: var(--success-hover);
    transform: translateY(-1px);
}

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

.step-btn-secondary {
    background-color: rgba(135, 134, 127, 0.1);
    color: var(--text-color);
}

.step-btn-secondary:hover {
    background-color: rgba(135, 134, 127, 0.2);
}

.step-btn-secondary.disabled {
    background-color: rgba(135, 134, 127, 0.05);
    color: rgba(135, 134, 127, 0.5);
    cursor: not-allowed;
}

.step-btn-secondary.disabled:hover {
    background-color: rgba(135, 134, 127, 0.05);
    transform: none;
}

.step-btn-secondary.disabled svg {
    stroke: rgba(135, 134, 127, 0.5);
}

.step-btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.step-btn-danger:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
}

.step-btn svg {
    width: 18px;
    height: 18px;
}

/* Completed Task Badge */
.task-completed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--success-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.task-completed-badge svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
}

/* Task Action Buttons */
.task-actions {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-shrink: 0;
}

.task-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.task-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.task-btn-start {
    background-color: var(--success-color);
    color: white;
}

.task-btn-start:hover {
    background-color: var(--success-hover);
    transform: translateY(-1px) scale(1.05);
}

.task-btn-start:active {
    transform: translateY(0) scale(0.95);
    transition: transform 0.1s ease;
}

.task-btn-start {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-btn-cancel {
    background-color: var(--danger-color);
    color: white;
}

.task-btn-cancel:hover {
    background-color: var(--danger-hover);
    transform: translateY(-1px);
}

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

/* Attendance Screen Styles */
.attendance-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.attendance-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.attendance-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--focus-outline);
}

.attendance-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attendance-button.check-in {
    border-color: var(--success-color);
}

.attendance-button.check-out {
    border-color: var(--danger-color);
}

.attendance-button.check-in:hover {
    border-color: var(--success-hover);
}

.attendance-button.check-out:hover {
    border-color: var(--danger-hover);
}

.attendance-button .attendance-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    stroke-width: 1.5;
}

.attendance-button.check-in .attendance-icon {
    stroke: var(--success-color);
}

.attendance-button.check-out .attendance-icon {
    stroke: var(--danger-color);
}

.attendance-button .attendance-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Status and See It Cards */
.status-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(135, 134, 127, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.status-card-content {
    padding: 20px;
}

.status-card-content h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.status-card-content p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 0;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(135, 134, 127, 0.1);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

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

.activity-list li:before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

@keyframes contentFadeIn {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}





/* Bottom Navigation Bar */
.bottom-nav {
    background-color: var(--nav-background);
    height: var(--bottom-nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-color);
    width: 33.333%;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.bottom-nav .nav-item .icon {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    stroke: #000000;
    stroke-width: 2;
    fill: none;
    transition: opacity 0.2s ease, stroke 0.2s ease;
}

.bottom-nav .nav-item .nav-label {
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.bottom-nav .nav-item:hover {
    background-color: var(--nav-hover-bg);
}

.bottom-nav .nav-item:hover .icon {
    opacity: 1;
    stroke: #BA5B38;
}

.bottom-nav .nav-item:hover .nav-label {
    opacity: 1;
}

.bottom-nav .nav-item.active {
    background-color: #FAF9F5;
    color: var(--text-color);
}

.bottom-nav .nav-item.active .icon {
    opacity: 1;
    stroke: #BA5B38;
}

.bottom-nav .nav-item.active .nav-label {
    opacity: 1;
    font-weight: 400;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: var(--scrollbar-track);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(135, 134, 127, 0.1);
    background-color: var(--background-start);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: rgba(135, 134, 127, 0.1);
    opacity: 1;
}

/* Video Modal */
.video-container {
    aspect-ratio: 16/9;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.video-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: white;
    margin-bottom: 16px;
    opacity: 0.8;
}

.video-placeholder p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Tips Modal */
.tips-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.tips-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-content li {
    background-color: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--info-color);
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.tips-content li:last-child {
    margin-bottom: 0;
}

/* See It Tab - Recording Interface */
.see-it-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 24px;
}

.recording-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.recording-section p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 24px;
}

.recording-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.record-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 80px;
    padding: 20px;
    background-color: white;
    border: 2px solid rgba(135, 134, 127, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.record-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--focus-outline);
}

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

.record-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: rgba(135, 134, 127, 0.1);
    border-radius: 12px;
    margin-right: 16px;
    flex-shrink: 0;
}

.record-btn-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-color);
    opacity: 0.8;
}

.record-btn-content {
    flex: 1;
    text-align: left;
}

.record-btn-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.record-btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Recording States */
.record-btn.recording {
    border-color: var(--danger-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.record-btn.recording .record-btn-icon {
    background-color: var(--danger-color);
}

.record-btn.recording .record-btn-icon svg {
    stroke: white;
    opacity: 1;
}

.recording-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.recording-dot {
    width: 12px;
    height: 12px;
    background-color: var(--danger-color);
    border-radius: 50%;
    animation: recordingPulse 1s ease-in-out infinite;
}

.voice-wave {
    width: 40px;
    height: 20px;
    background: linear-gradient(90deg, var(--danger-color) 0%, var(--danger-color) 100%);
    border-radius: 4px;
    animation: voiceWave 0.8s ease-in-out infinite alternate;
}

.recording-time {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--danger-color);
    margin-left: auto;
}

@keyframes recordingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes voiceWave {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1.2); }
}

/* Recent Submissions */
.recent-submissions h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
}

.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.submission-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(135, 134, 127, 0.1);
}

.submission-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.submission-icon.video {
    background-color: rgba(59, 130, 246, 0.1);
}

.submission-icon.voice {
    background-color: rgba(16, 185, 129, 0.1);
}

.submission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.submission-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}

.submission-time {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
}

.submission-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submission-status.pending {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.submission-status.completed {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
    :root {
        --nav-height: 70px;
        --bottom-nav-height: 72px;
    }
    
    .top-nav {
        padding: 0 24px;
    }
    
    .app-title {
        font-size: 1.6rem;
    }
    
    .breadcrumb-separator {
        font-size: 1.6rem;
    }
    
    #current-page {
        font-size: 1.6rem;
    }
    
    .main-content {
        padding: 24px;
    }
    
    .content-wrapper h1 {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .content-wrapper p {
        margin-bottom: 24px;
    }
    
    .bottom-nav .nav-item .icon {
        width: 36px;
        height: 36px;
    }
    
    .bottom-nav .nav-item .nav-label {
        font-size: 0.85rem;
    }
    
    .attendance-button {
        width: 240px;
        height: 240px;
    }
    
    .attendance-button .attendance-icon {
        width: 100px;
        height: 100px;
    }
    
    .attendance-button .attendance-label {
        font-size: 1.4rem;
    }
    
    .task-tabs {
        margin-bottom: 24px;
    }
    
    .task-tab {
        padding: 18px 24px;
        font-size: 1.1rem;
    }
    
    .task-cards-container {
        gap: 16px;
    }
    
    .task-card.compact .task-card-header {
        padding: 20px 24px;
    }
    
    .task-card.compact .task-title {
        font-size: 1.15rem;
    }
}