/* ========================================
   Modern Mobile App Styles
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --background: #f8fafc;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-wrapper {
    min-height: 100vh;
    position: relative;
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-container { 
    display: flex;
    align-items: center;
    justify-content: center; 
    background: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Sayfa geçiş animasyonları */
.login-container.slide-out-left {
    animation: slideOutLeft 0.4s ease-in-out forwards;
}

.login-container.slide-out-right {
    animation: slideOutRight 0.4s ease-in-out forwards;
}

.login-container.slide-in-left {
    animation: slideInLeft 0.4s ease-in-out forwards;
}

.login-container.slide-in-right {
    animation: slideInRight 0.4s ease-in-out forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
} 
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Register için scrollable versiyon */
.login-box.scrollable {
    height: auto;
    min-height: 100vh;
    max-height: 100vh;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.logo-voc {
    background: #ef4444;
    color: white;
    font-size: 28px;
    font-weight: 800;
    padding: 1px 6px; 
    letter-spacing: 1px;
}

.logo-home {
    font-size: 28px;
    font-weight: 400;
    color: var(--dark);
    letter-spacing: 1px;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray);
    font-size: 14px;
}

.login-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-label i {
    color: var(--primary);
    margin-right: 6px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--background);
}

/* Daha küçük input versiyonu (register için) */
.form-input-sm {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--background);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input-sm:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--dark-light);
}

.checkbox-label input {
    margin-right: 8px;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

.register-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link:hover {
    color: var(--primary-dark);
}

/* ========================================
   HOME PAGE STYLES
   ======================================== */

.top-bar {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    background: #ffffff7a;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--dark);
    padding: 10px 16px;
    z-index: 100; 
    border-radius: 16px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 768px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.user-role {
    font-size: 12px;
    color: var(--gray);
}

.btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.home-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 80px 20px 50px 20px;
}

.stats-grid {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card:active {
    transform: scale(0.98);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.stat-warning .stat-icon {
    background: linear-gradient(135deg, var(--warning), #fbbf24);
    color: var(--white);
}

.stat-info .stat-icon {
    background: linear-gradient(135deg, var(--info), #60a5fa);
    color: var(--white);
}

.stat-success .stat-icon {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: var(--white);
}

.stat-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}

.stat-status {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray);
}

.stat-status.success {
    color: var(--success);
}

.stat-status.pending {
    color: var(--warning);
}

.section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.section-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.section-link:hover {
    color: var(--primary-dark);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-btn {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-btn i {
    font-size: 28px;
    color: var(--primary);
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.announcement-card:active {
    transform: scale(0.98);
}

.announcement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.announcement-icon.urgent {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.announcement-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.announcement-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.announcement-content {
    flex: 1;
}

.announcement-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.announcement-text {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.5;
}

.announcement-time {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: #ffffff7a;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--gray);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    padding: 8px 20px;
    border-radius: var(--radius);
}

.nav-item > span:not(.notification-badge) {
    display: none;
}

.nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.nav-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.nav-item i {
    font-size: 22px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Tabler Icons Spin Animation */
.ti-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 400px) {
    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .action-btn {
        padding: 16px 8px;
    }
     
}

@media (min-width: 768px) {
    .login-container {
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    }
}

/* Page Transition Animations */
.home-container,
.about-page,
.help-page,
.profile-container {
    animation: fadeInPage 0.4s ease;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
