:root {
    --primary-color: #2c5282;
    --secondary-color: #3182ce;
    --accent-color: #63b3ed;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --text-muted: #718096;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.admin-link {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.admin-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Portal Cards */
.portal-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portal-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.portal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.portal-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.portal-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.portal-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.portal-btn.secondary {
    background: var(--success-color);
}

.portal-btn.secondary:hover {
    background: #2f855a;
}

/* Telegram Section */
.telegram-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.telegram-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.telegram-info h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.telegram-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.telegram-btn {
    background: #0088cc;
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
}

.telegram-btn:hover {
    background: #006ba1;
    transform: translateY(-2px);
}

.qr-code {
    width: 150px;
    height: 150px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius);
}

/* News Section */
.news-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.news-section h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.news-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.news-content {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.contact-card h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Admin Styles */
.admin-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}

.admin-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-control[type="color"] {
    height: 50px;
    padding: 5px;
    cursor: pointer;
}

.form-control[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.form-control[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: calc(var(--border-radius) - 2px);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #c53030;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #2f855a;
}

.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fc8181;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-color);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.2rem;
    }
    
    .portal-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .telegram-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .portal-card,
    .telegram-section,
    .news-section,
    .contact-card {
        padding: 25px;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .admin-card {
        padding: 25px;
    }
} 