* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #34495e;
    --gray: #95a5a6;
}

body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 25px 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.help-link {
    background: var(--warning);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.help-link:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

header h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

header h1 i {
    color: var(--warning);
}

header p {
    opacity: 0.9;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.header-logo i {
    font-size: 2.5rem;
    color: var(--secondary);
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px;
}

@media (max-width: 1100px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s;
}

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

.card-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--secondary);
}

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

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group label i {
    color: var(--secondary);
}

.brick-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.brick-type {
    flex: 1;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.brick-type:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.brick-type.selected {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.1);
    transform: translateY(-3px);
}

.brick-type i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.brick-type h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

.brick-type p {
    color: var(--gray);
    font-size: 0.9rem;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

input, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.position-input {
    width: 120px;
}

.rebound-input {
    width: 70px;
    text-align: center;
}

.brick-position-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f9f9f9;
}

.brick-position-group label {
    min-width: 100px;
    font-weight: bold;
    color: var(--dark);
}

.brick-rebounds {
    display: flex;
    gap: 8px;
}

.brick-rebounds input {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

button {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button i {
    font-size: 1.2rem;
}

.btn-calculate {
    background: linear-gradient(135deg, var(--secondary), #2980b9);
    color: white;
}

.btn-calculate:hover {
    background: linear-gradient(135deg, #2980b9, var(--secondary));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.btn-reset {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.result-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #dee2e6;
}

.result-label {
    font-weight: 600;
    color: var(--dark);
}

.result-value {
    font-weight: 700;
    color: var(--secondary);
}

.conclusion {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 25px;
    margin-top: 25px;
    text-align: center;
    border-left: 5px solid var(--secondary);
}

.conclusion h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.conclusion-text {
    font-size: 1.3rem;
    font-weight: 700;
}

.pass {
    color: var(--success);
}

.fail {
    color: var(--accent);
}

.quick-help {
    background: #e8f4f8;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--secondary);
}

.quick-help h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 25px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    font-size: 1rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-note {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.zone-header {
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zone-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.position-example {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .input-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 1.8rem;
        flex-direction: column;
    }
    
    .brick-type-selector {
        flex-direction: column;
    }
    
    .brick-position-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brick-rebounds {
        width: 100%;
    }
}

#help-section {
    margin: 0 30px 30px;
}

#zone-strengths {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 15px;
}

#zone-strengths .result-item {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
}