/* ڕێکخستنی گشتی */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Naskh Arabic', 'Rudaw', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    padding-bottom: 20px;
}

/* سەرپەڕە */
.app-header {
    background-color: #ffffff;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header h1 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.app-header p {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* کارتی قوتابی */
.student-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.student-card:active {
    transform: scale(0.98);
}

.student-name {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.input-group label {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

/* خانەی نمرە نووسین */
.score-input {
    width: 100%;
    padding: 10px;
    font-size: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fafafa;
}

.score-input:focus {
    border-color: #3498db;
    background-color: #fff;
}

.arrow {
    font-size: 1.5rem;
    color: #bdc3c7;
}

.result-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
    background-color: #ebf5fb;
    padding: 5px;
    border-radius: 8px;
}

.result-label {
    font-size: 0.8rem;
    color: #2980b9;
    margin-bottom: 2px;
}

.result-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2980b9;
}

/* دوگمەی دابەزاندن - خوارەوەی شاشە */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.download-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.2);
}

.download-btn:active {
    background-color: #219150;
    transform: translateY(1px);
}

/* دۆخی هەڵە */
.score-input.error {
    border-color: #e74c3c;
    background-color: #fdedec;
}

/* بۆ شاشەی گەورەتر */
@media (min-width: 768px) {
    .student-card {
        flex-direction: row;
        align-items: center;
    }
    .student-name {
        width: 50%;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    .card-body {
        width: 50%;
    }
}