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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo h1 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: #667eea;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #667eea;
    border-radius: 2px;
}

main {
    padding: 40px 0;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(17, 153, 142, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(252, 74, 26, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.text-editor {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.text-editor:focus {
    outline: none;
    border-color: #667eea;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tool-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.tool-icon.red { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.tool-icon.orange { background: linear-gradient(135deg, #ffa502, #ff7f50); }
.tool-icon.yellow { background: linear-gradient(135deg, #ffd93d, #f9ca24); }
.tool-icon.green { background: linear-gradient(135deg, #6ab04c, #badc58); }
.tool-icon.blue { background: linear-gradient(135deg, #487eb0, #6c5ce7); }
.tool-icon.purple { background: linear-gradient(135deg, #a29bfe, #6c5ce7); }

.tool-info h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.tool-info p {
    color: #666;
    font-size: 14px;
}

.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.match-item:hover {
    background: #e9ecef;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-league {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.match-date {
    color: #888;
    font-size: 14px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.team {
    flex: 1;
    text-align: center;
}

.team-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.team-flag {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.match-score {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

.match-status {
    text-align: center;
    margin-top: 10px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-upcoming { background: #ffeaa7; color: #d63031; }
.status-live { background: #fd79a8; color: white; animation: pulse 1s infinite; }
.status-finished { background: #dfe6e9; color: #636e72; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.login-card {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.login-card h2 {
    margin-bottom: 30px;
    color: #333;
}

.login-form {
    text-align: left;
}

.login-options {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.login-options .btn {
    flex: 1;
    justify-content: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.user-details h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 2px;
}

.user-details p {
    color: #888;
    font-size: 13px;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.notice-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

.notice-content h3 {
    color: #c0392b;
    margin-bottom: 10px;
    font-size: 18px;
}

.notice-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.intro-content {
    line-height: 1.8;
    color: #555;
}

.intro-content h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.intro-content p {
    margin-bottom: 15px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ddd;
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .tools-list {
        grid-template-columns: 1fr;
    }
    
    .match-teams {
        flex-direction: column;
    }
    
    .match-score {
        margin: 15px 0;
    }
}
