* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    min-height: 100vh;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.body-center {
    display: flex;
    justify-content: center;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    animation: fall linear infinite;
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    background: white;
    padding: 30px 40px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #c41e3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 48px;
}

.header-text h1 {
    color: #1e3c72;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.company-name {
    color: #c41e3a;
    font-weight: 600;
    font-size: 14px;
}

h1 {
    color: #1e3c72;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #c41e3a, transparent);
    margin: 25px 0;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    color: #999;
    font-size: 13px;
    text-align: center;
}

.header-nav {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #ddd;
}

.nav-btn:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.logout-btn {
    background: #f5f5f5;
    border-color: #ddd;
}

.logout-btn:hover {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

.content {
    background: white;
    padding: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.page-title {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.page-title h2 {
    color: #1e3c72;
    font-size: 32px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 16px;
}

.training-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.training-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 30px;
    border-left: 5px solid #c41e3a;
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.training-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.training-info {
    flex: 1;
}

.training-date {
    background: #2a5298;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.training-type {
    display: inline-block;
    background: #c41e3a;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.training-title {
    color: #1e3c72;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.training-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.training-resources {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
}

.resources-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #2a5298;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #2a5298;
    transition: all 0.3s ease;
    margin-right: 10px;
    margin-bottom: 10px;
}

.resource-link:hover {
    background: #2a5298;
    color: white;
}

.resource-link.unavailable {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 0.6;
}

.resource-link.unavailable:hover {
    background: #f5f5f5;
    color: #999;
    transform: none;
}

.welcome-section {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 40px;
}

.welcome-section h2 {
    color: #1e3c72;
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #666;
    font-size: 16px;
}

.quick-links {
    margin-top: 30px;
}

.quick-links h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #c41e3a;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.link-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 25px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #2a5298;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.link-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.link-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 8px;
}

.link-card-description {
    font-size: 14px;
    color: #666;
}

.error-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 10;
    border-top: 5px solid #c41e3a;
    text-align: center;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.error-message {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: 2px solid #c41e3a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.login-container {
    background: white;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    border-top: 5px solid #c41e3a;
}

.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    font-size: 64px;
    margin-bottom: 15px;
    display: block;
}

.subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

button:active {
    transform: translateY(0);
}

.error {
    background: #fee;
    color: #c41e3a;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 4px solid #c41e3a;
    display: none;
}

.error.show {
    display: block;
}