body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #fdfbf7; color: #333; margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
.hidden { display: none !important; }

/* Loader */
#global-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.spinner { border: 6px solid #f3f3f3; border-top: 6px solid #d35400; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
#global-loader-text { color: white; margin-top: 20px; font-weight: bold; font-size: 1.2em; letter-spacing: 1px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Header & Footer */
header, footer { background-color: #1e2a38; color: white; text-align: center; padding: 25px 20px; }
.logo { max-height: 60px; border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.1); margin: 0;}
header h1 { color: white; margin: 0; font-size: 2rem; text-transform: uppercase; letter-spacing: 3px; }
footer { margin-top: auto; }
footer p { margin: 8px 0; }
footer a { color: #ffab76; text-decoration: none; font-weight: bold; transition: 0.2s; }
footer a:hover { color: white; text-decoration: underline; }

/* Containers */
.container { flex: 1; max-width: 900px; margin: 0 auto 40px auto; padding: 0 20px; width: 100%; box-sizing: border-box; }
.card { max-width: 600px; margin: 0 auto 20px auto; background: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-top: 5px solid #d35400; text-align: center; }

/* Typography & Inputs */
.dark-title { color: #1e2a38; margin-top:0; }
.orange-title { color: #d35400; margin-top:0; }
.section-label { text-align: left; margin: 15px 0 5px 0; font-size: 0.9em; font-weight: bold; color: #7f8c8d; }

input[type="text"], input[type="email"], input[type="tel"], select { width: 100%; padding: 14px; margin: 10px 0; border: 2px solid #ddd; border-radius: 6px; box-sizing: border-box; font-size: 16px; font-family: inherit;}
input:focus, select:focus { border-color: #d35400; outline: none; }
.readonly-input { background:#eee; color:#666; font-weight:bold; cursor:not-allowed; }
.two-cols { display: flex; gap: 10px; flex-wrap: wrap;}
.two-cols > input { flex: 1; min-width: 150px; }

/* Buttons */
button { padding: 14px; font-weight: bold; font-size: 1.1em; border-radius: 6px; cursor: pointer; border: none; margin-top: 10px; color: white; transition: 0.3s; width: 100%; text-transform: uppercase; letter-spacing: 1px;}
.btn-main { background: #d35400; }
.btn-main:hover { background: #bf360c; }
.btn-main:disabled { background: #95a5a6 !important; cursor: not-allowed; opacity: 1 !important;}

.btn-main-menu { width: 100%; padding: 20px; font-size: 1.2em; font-weight: bold; border: none; border-radius: 8px; cursor: pointer; transition: 0.3s; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-main-menu.dark { background-color: #1e2a38; color: white; }
.btn-main-menu.dark:hover { background-color: #2c3e50; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.btn-back { background-color: #95a5a6; color: white; margin-top: 15px; }
.btn-back:hover { background-color: #7f8c8d; }
/* Posodobljeni gumbi v orodni vrstici */
.btn-logout { 
    background-color: #c0392b; 
    color: white;
    width: auto !important; 
    padding: 8px 15px; 
    font-size: 0.9em; 
    margin: 0; 
    letter-spacing: 0;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn-logout:hover { background-color: #a53125; }
.btn-profile { 
    background-color: #2980b9; 
    color: white;
    width: auto !important; 
    padding: 8px 15px; 
    font-size: 0.9em; 
    margin: 0 10px 0 0; 
    letter-spacing: 0;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.btn-profile:hover { background-color: #216a9c; }

/* Checkboxes */
.checkbox-list { border: 2px solid #ddd; border-radius: 6px; padding: 10px; text-align: left; background: #fff; max-height: 350px; overflow-y: auto; margin-bottom: 10px;}
.checkbox-item { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.95em; cursor: pointer; padding: 5px; border-bottom: 1px solid #f9f9f9;}
.checkbox-item:hover { background-color: #fdfbf7; }

/* Dashboard */
.dashboard { background: white; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; margin-top: 10px;}
.header-bar { background-color: #1a252f; color: white; padding: 20px 30px; border-bottom: 5px solid #d35400; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}
.header-bar h2 { margin: 0; font-size: 1.4em; }
.user-info { font-size: 0.9em; color: #bdc3c7; margin-top: 5px; }
.dashboard-content { padding: 30px; text-align: center; }
.courses-title { margin-top: 0; color: #27ae60; font-size: 1.4em; margin-bottom: 20px; }
.status-msg { font-weight:bold; margin-top:20px; text-align: center; }

/* List Row */
.list-row { background: white; border: 1px solid #ddd; border-radius: 8px; padding: 15px; margin-bottom: 15px; text-align: left; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.list-row h4 { margin: 0 0 10px 0; color: #2c3e50; font-size: 1.2em; display:flex; align-items:center; gap:8px;}
.list-row .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.course-btn { flex: 1; min-width: 120px; padding: 10px; font-size: 0.85em; letter-spacing: 0; margin: 0;}

/* MODALI IN POJAVNA OKNA */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    z-index: 2000; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 20px; 
    padding-top: 5vh; 
    box-sizing: border-box; 
    backdrop-filter: blur(4px); 
    overflow-y: auto;
}

.modal-content { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    max-width: 900px; 
    width: 100%; 
    text-align: left; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    position: relative; 
    margin-bottom: 5vh;
}

.modal-close { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 1.5em; 
    cursor: pointer; 
    color: #888; 
    font-weight: bold; 
}

.modal-close:hover { 
    color: #333; 
}