/* Vispārējie stili - attiecas uz visu lapu */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Lapas pamatteksta stili */
body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Galvenais konteiners - ierobežo lapas platumu */
.container {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

/* Galvenā karte - balta kaste ar saturu */
.main-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
}

/* Lapas galvenes stili */
header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
}

/* Galvenā virsraksta stili */
h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

/* Lietotāja informācijas bloka stili */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4fc 0%, #f0f8ff 100%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Lietotāja ikonas stili */
.user-icon {
    font-size: 3rem;
    color: #3498db;
    margin-right: 20px;
}

/* Lietotāja vārda virsraksta stili */
.user-details h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.5rem;
}

/* Statusa birkas stili */
.user-status {
    font-weight: bold;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    display: inline-block;
}

/* Statusa stils - ielogojies (zaļš) */
.logged-in {
    background-color: #d4edda;
    color: #155724;
}

/* Statusa stils - nav ielogojies (sarkans) */
.logged-out {
    background-color: #f8d7da;
    color: #721c24;
}

/* Darbību sadaļas stili */
.actions-section {
    margin-bottom: 30px;
}

/* Darbību sadaļas virsraksta stili */
.actions-section h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pogu režģa konteiners */
.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* Vispārējie pogu stili */
.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    height: 100%;
}

/* Zilā poga (primārā) */
.btn-primary {
    background-color: #3498db;
    color: white;
}

/* Zilās pogas efekts, kad uz tās novieto peli */
.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Zaļā poga (veiksmīga) */
.btn-success {
    background-color: #2ecc71;
    color: white;
}

/* Zaļās pogas efekts, kad uz tās novieto peli */
.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* Dzeltenā poga (brīdinājums) */
.btn-warning {
    background-color: #f39c12;
    color: white;
}

/* Dzeltenās pogas efekts, kad uz tās novieto peli */
.btn-warning:hover {
    background-color: #d68910;
    transform: translateY(-2px);
}

/* Sarkana poga (bīstama) */
.btn-danger {
    background-color: #e74c3c;
    color: white;
}

/* Sarkanas pogas efekts, kad uz tās novieto peli */
.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

/* Pelēka poga (sekundārā) */
.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

/* Pelēkas pogas efekts, kad uz tās novieto peli */
.btn-secondary:hover {
    background-color: #6c7b7d;
    transform: translateY(-2px);
}

/* Neaktīvas pogas stili */
.btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Neaktīvas pogas efekts, kad uz tās novieto peli */
.btn:disabled:hover {
    transform: none;
    background-color: #cccccc;
}

/* Modāloga (logu) fona stili */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

/* Modāloga satura kastes stili */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalAppear 0.3s ease;
}

/* Animācija modāloga parādīšanai */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aizvēršanas pogas stili */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s;
}

/* Aizvēršanas pogas efekts, kad uz tās novieto peli */
.close:hover {
    color: #333;
}

/* Formas lauku grupas stili */
.form-group {
    margin-bottom: 20px;
}

/* Formas etiķešu stili */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

/* Ievades lauku stili */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

/* Ievades lauka stili, kad tas ir aktīvs (fokuss) */
.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Ziņojumu lauka vispārējie stili */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

/* Animācija ziņojuma parādīšanai */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Veiksmīga ziņojuma stili (zaļš) */
.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Kļūdas ziņojuma stili (sarkans) */
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Informācijas ziņojuma stili (zils) */
.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Daudzrindu ziņojuma stili */
.message.multi-line {
    padding: 20px;
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Daudzrindu ziņojuma teksta stili */
.message.multi-line #message-text {
    display: block;
    width: 100%;
}

/* Tab pogu konteiners */
.tab-buttons {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #ddd;
}

/* Tab pogu stili */
.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

/* Aktīvas tab pogas stili */
.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Tab satura stili (paslēpts pēc noklusējuma) */
.tab-content {
    display: none;
}

/* Aktīva tab satura stili (redzams) */
.tab-content.active {
    display: block;
}

/* Sesijas informācijas bloka stili */
.session-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

/* Sesijas informācijas virsraksta stili */
.session-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sesijas informācijas teksta stili */
.session-info p {
    margin-bottom: 8px;
    color: #555;
}

/* Responsive stili - planšetdatoriem un mazākiem ekrāniem */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .main-card {
        padding: 25px;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

/* Responsive stili - mobilajām ierīcēm */
@media (max-width: 480px) {
    .main-card {
        padding: 20px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        padding: 10px;
    }
}
