* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-light: #8B85FF;
    --primary-dark: #554fd8;
    --secondary: #FF6584;
    --accent: #36D1DC;
    --accent-light: #5DDBE3;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --dark: #2D3748;
    --light: #F7FAFC;
    --gray: #A0AEC0;
    --text: #2D3748;
    --text-light: #718096;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #8B85FF 100%);
    --gradient-accent: linear-gradient(135deg, #36D1DC 0%, #5DDBE3 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6584 0%, #FF8FA3 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Animated Background */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent);
    bottom: 10%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    background: var(--success);
    top: 20%;
    right: 5%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    margin-bottom: 15px;
}

.title-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 2.2rem;
    display: block;
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.description {
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Styles */
.dashboard {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Motivation Card */
.motivation-card {
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 25px;
    border-radius: 15px;
    margin: 20px;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    animation: pulse 2s infinite;
    text-align: center;
    justify-content: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    }
    50% {
        box-shadow: 0 10px 30px rgba(108, 99, 255, 0.5);
    }
    100% {
        box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    }
}

.motivation-icon {
    font-size: 2.2rem;
    margin-right: 18px;
    animation: rocketFloat 3s infinite ease-in-out;
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-4px) translateX(2px);
    }
    50% {
        transform: translateY(0) translateX(0);
    }
    75% {
        transform: translateY(4px) translateX(-2px);
    }
}

.motivation-content {
    flex: 1;
}

.motivation-content h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.motivation-content p {
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(108, 99, 255, 0.1);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.section-header h2 i {
    color: var(--primary);
}

.section-header p {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Calculator Section */
.calculator-section {
    background: white;
    border-radius: 15px;
    padding: 22px;
    margin: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.semesters-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 18px;
}

.semesters-container::-webkit-scrollbar {
    width: 5px;
}

.semesters-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.semesters-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 8px;
}

.semester {
    background: var(--light);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.semester:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.semester-header h3 {
    color: var(--dark);
    font-size: 1.1rem;
}

.remove-semester {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.remove-semester:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.courses {
    margin-bottom: 12px;
}

.course {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out;
}

.course:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.course input, .course select {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.course input:focus, .course select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.remove-course {
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.remove-course:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.add-course-btn {
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
}

.add-course-btn:hover {
    background: #43a047;
    transform: translateY(-2px);
}

/* Controls */
.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.btn-primary, .btn-calculate, .btn-secondary {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.4);
}

.btn-calculate {
    background: var(--accent);
    color: white;
}

.btn-calculate:hover {
    background: #2bb7c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(54, 209, 220, 0.4);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background: #9098a6;
    transform: translateY(-2px);
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 15px;
    padding: 22px;
    margin: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.results-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .results-cards {
        grid-template-columns: 1fr;
    }
}

/* Professional Color Cards - Smaller Size */
.result-card {
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    color: white;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

.primary-card {
    background: var(--gradient-primary);
    box-shadow: 0 8px 16px rgba(108, 99, 255, 0.25);
}

.highlight-card {
    background: var(--gradient-secondary);
    box-shadow: 0 8px 16px rgba(255, 101, 132, 0.25);
    transform: scale(1.03);
}

.accent-card {
    background: var(--gradient-accent);
    box-shadow: 0 8px 16px rgba(54, 209, 220, 0.25);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.highlight-card:hover {
    transform: scale(1.03) translateY(-4px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.result-card h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: inherit;
    opacity: 0.95;
    font-weight: 600;
}

.gpa-value, .standing-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Visualization Section */
.visualization-section {
    background: white;
    border-radius: 15px;
    padding: 22px;
    margin: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: var(--light);
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.1rem;
}

.chart-card h3 i {
    color: var(--primary);
}

.chart-container {
    height: 220px;
    position: relative;
}

/* Footer */
footer {
    text-align: center;
    padding: 18px;
    margin-top: 25px;
    color: var(--text-light);
    font-size: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content p {
    margin-bottom: 4px;
}

.footer-note {
    font-size: 0.75rem;
    opacity: 0.7;
}

.footer-note i {
    color: var(--danger);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .title-text {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .motivation-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .motivation-icon {
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 2rem;
    }
    
    .course {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .highlight-card {
        transform: scale(1);
    }
    
    .highlight-card:hover {
        transform: translateY(-4px);
    }
    
    .results-cards {
        gap: 12px;
    }
    
    .result-card {
        padding: 18px;
        min-height: 160px;
    }
    
    .gpa-value, .standing-value {
        font-size: 2rem;
    }
}