/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    min-height: calc(100vh - 40px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-section {
    flex-grow: 1;
}

.nav-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 3px;
}

.tab {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.tab:hover {
    background: linear-gradient(135deg, #ff8a80 0%, #ff7043 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sub-nav {
    font-size: 9px;
}

.sub-nav a {
    color: white;
    text-decoration: none;
}

.sub-nav a:hover {
    text-decoration: underline;
}

/* Main Content Layout */
.main-content {
    display: flex;
    padding: 30px;
    gap: 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.content-area {
    flex: 1;
    max-width: 650px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

/* Content Styles */
.main-heading {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #4a5568;
    font-size: 20px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

h3 {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.feature-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

.feature-list li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Form Styles */
.signup-form-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-section {
    flex: 1;
}

.preview-section {
    width: 200px;
    flex-shrink: 0;
}

.form-table {
    width: 100%;
    margin-bottom: 15px;
}

.form-table td {
    padding: 3px;
    vertical-align: top;
}

.form-table label {
    font-size: 10px;
    font-weight: bold;
}

.form-table input,
.form-table select {
    font-size: 13px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #ffffff;
    font-family: inherit;
}

.form-table input:focus,
.form-table select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: #f7fafc;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="url"],
.form-table input[type="number"] {
    width: 280px;
}

.form-table select {
    width: 200px;
}

.small-link {
    font-size: 9px;
    color: #0066cc;
    text-decoration: none;
}

.small-link:hover {
    text-decoration: underline;
}

.form-options {
    margin: 25px 0;
    font-size: 13px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.form-options label {
    display: block;
    margin-bottom: 3px;
    line-height: 1.3;
}

.form-options input[type="checkbox"] {
    margin-right: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Counter Preview */
.counter-preview {
    text-align: center;
    margin: 10px 0;
    padding: 8px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
}

.counter-preview img {
    display: block;
    margin: 0 auto 5px auto;
    border-radius: 2px;
}

.preview-label {
    font-size: 9px;
    color: #666;
    font-weight: bold;
}

/* Sidebar Styles */
.sidebar-section {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.login-form label {
    display: block;
    font-size: 9px;
    margin-bottom: 2px;
}

.login-form input {
    font-size: 9px;
    padding: 1px;
    margin-bottom: 3px;
    border: 1px solid #ccc;
}

.btn-small {
    background-color: #cc0000;
    color: white;
    padding: 2px 8px;
    border: none;
    font-size: 9px;
    cursor: pointer;
    margin-top: 3px;
}

.login-links {
    margin-top: 5px;
    font-size: 9px;
}

.login-links a {
    color: #0066cc;
    text-decoration: none;
}

.news-item {
    margin-bottom: 8px;
    font-size: 9px;
    line-height: 1.3;
}

.news-item strong {
    color: #cc0000;
}

.small {
    font-size: 8px;
}

.quick-links {
    list-style: none;
    margin-left: 0;
}

.quick-links li {
    margin-bottom: 3px;
    font-size: 9px;
}

.quick-links a {
    color: #0066cc;
    text-decoration: none;
}

.quick-links a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    text-align: center;
    font-size: 12px;
    color: white;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 5px;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    color: rgba(255,255,255,0.8);
    margin-top: 15px;
}

.copyright a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: white;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: none;
    border-left: 4px solid #f56565;
    padding: 20px;
    margin: 25px 0;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(245, 101, 101, 0.1);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.flash-message {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 11px;
    max-width: 300px;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .signup-form-container {
        flex-direction: column;
    }
    
    .preview-section {
        width: 100%;
    }
}
