:root {
    --primary: #3498db;
    --secondary: #2980b9;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.8s ease-in-out;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-download {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

.btn-upload {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.add-lecture-btn {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    margin-bottom: 20px;
    padding: 12px 25px;
    font-weight: 600;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    padding: 8px 20px;
    font-weight: 500;
    color: white;
    border: none;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #667eea, #764ba2, #00b09b, #96c93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "š";
    font-size: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2, #00b09b, #96c93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Dashboard Styles */
.dashboard {
    padding: 30px 0;
    animation: slideUp 0.6s ease-out;
}

.lecture-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.lecture-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.lecture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.lecture-info {
    flex: 1;
}

.lecture-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lecture-date {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.lecture-stats {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 5px;
    display: inline-block;
    border: 1px solid #bbdefb;
    box-shadow: 0 2px 5px rgba(187, 222, 251, 0.3);
}

.lecture-actions-small {
    margin-left: 10px;
}

.lecture-actions-small .btn-edit,
.lecture-actions-small .btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.lecture-actions-small .btn-edit:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lecture-actions-small .btn-delete:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.lecture-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Lecture Description */
.lecture-description {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
    animation: slideIn 0.5s ease-out;
}

.lecture-description h4 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
}

.description-content {
    line-height: 1.4 !important;
    white-space: normal;
    font-size: 15px;
    color: #555;
}

.description-line {
    line-height: 1.4;
    margin-bottom: 0.3em;
    padding: 0;
    animation: fadeInUp 0.4s ease-out;
}

.description-line:last-child {
    margin-bottom: 0;
}

/* Upload Status */
.upload-status {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.upload-status.uploaded {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 5px rgba(195, 230, 203, 0.3);
}

.upload-status.not-uploaded {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
    box-shadow: 0 2px 5px rgba(255, 234, 167, 0.3);
}

/* Files Section */
.files-section h4 {
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.no-files {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.file-card {
    display: flex;
    align-items: center;
    padding: 18px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.file-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.file-card:hover::before {
    left: 100%;
}

.file-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.file-card.teacher-file {
    background: linear-gradient(135deg, #f0f8ff, #e3f2fd);
    border-left: 4px solid #2196f3;
}

.file-card.student-file {
    background: linear-gradient(135deg, #f8fff8, #e8f5e8);
    border-left: 4px solid #4caf50;
}

.file-icon {
    font-size: 28px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.file-meta {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

.file-meta-user {
    margin-bottom: 8px; /* Mė shumė hapėsirė nėn emėr */
    display: block;
}

.file-meta-badge {
    margin-bottom: 5px; /* Pak hapėsirė mbi etiketėn */
    display: block;
}

.file-meta-time {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.file-meta br {
    margin-bottom: 3px; /* Shto pak hapĆ«sirĆ« */
    display: block;
    content: "";
}

.file-badge {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.teacher-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.student-badge {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.file-actions {
    display: flex;
    gap: 5px;
}

.file-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

/* Message Styles */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1);
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.file-help {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.no-lectures {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px dashed #dee2e6;
}

.no-lectures p {
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 16px;
}

.login-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
    border-left: 4px solid #667eea;
}

.login-info p {
    margin-bottom: 5px;
}

.hidden {
    display: none !important;
}

/* Header i ri pĆ«r skedarĆ«t */
.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.files-header h4 {
    margin: 0;
}

/* Filtri pĆ«r studentĆ«t */
.student-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.student-filter label {
    font-size: 14px;
    font-weight: 600;
    color: #37474f;
    margin: 0;
}

.student-filter select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.student-filter select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Klasa pĆ«r fshehjen e skedarĆ«ve tĆ« studentĆ«ve */
.student-file-hidden {
    display: none !important;
}

/* Njoftimi pĆ«r skedarĆ«t e studentĆ«ve */
.student-files-notice {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #90caf9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    text-align: center;
    animation: pulse 2s infinite;
}

.notice-message {
    color: #1565c0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notice-message:before {
    content: "š”";
    font-size: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .header-buttons {
        flex-wrap: wrap;
    }
    
    .lecture-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .lecture-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lecture-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lecture-actions-small {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .files-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .student-filter {
        width: 100%;
        justify-content: space-between;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .student-filter select {
        min-width: 100%;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}