/* ============================================
   CAMPUS PREMIUM — GOOGLE MODEL (INTERN STYLE)
   ============================================ */

:root {
    --google-blue: #4285F4;
    --google-blue-hover: #1A73E8;
    --google-red: #EA4335;
    --google-yellow: #FBBC04;
    --google-green: #34A853;

    --text-primary: #202124;
    --text-secondary: #5F6368;
    --surface: #FFFFFF;
    --background: #F8F9FA;

    --font-brand: 'Google Sans', 'Plus Jakarta Sans', sans-serif;
    --font-plain: 'Roboto', 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;

    --shadow-sm: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Legacy variables for compatibility */
    --primary-color: #4285F4;
    --secondary-color: #5F6368;
    --success-color: #34A853;
    --warning-color: #FBBC04;
    --danger-color: #EA4335;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #202124;
    --border-radius: var(--radius-sm);
    --box-shadow: var(--shadow-sm);
}

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

body {
    background: var(--surface);
    color: var(--text-primary);
    font-family: var(--font-plain);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    padding-bottom: 80px; /* Space for fixed footer */
}

/* Typography */
h1, h2, h3, h4, .font-brand {
    font-family: var(--font-brand);
    font-weight: 500;
}

.text-gradient {
    color: var(--google-blue);
}

/* Fix for relative paths */
.navbar-brand, .nav-link, .dropdown-item {
    text-decoration: none !important;
}

/* Custom card styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Dashboard stats cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stats-card.success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
}

.stats-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #d39e00);
}

.stats-card.info {
    background: linear-gradient(135deg, var(--info-color), #117a8b);
}

.stats-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Survey form styles */
.survey-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.question-block {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.question-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

.rating-stars .star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffc107;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-brand);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--google-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--google-blue-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--google-blue);
    border: 1px solid #DADCE0;
}

.btn-secondary:hover {
    background: #F8F9FA;
    border-color: #D2D4D7;
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
}

/* Table styles */
.table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

/* Alert styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .stats-card {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .survey-form {
        padding: 1rem;
    }
    
    .question-block {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Survey link styling */
.survey-link {
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-family: monospace;
    word-break: break-all;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Form validation */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Progress bar */
.survey-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.survey-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: width 0.3s ease;
}

/* Fixed Footer */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Question Builder Enhancements */
.question-item {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.question-item:hover {
    border-left-color: var(--success-color);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.question-item .card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

/* Advanced Settings */
.advanced-settings {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Custom URL Section */
.custom-url-preview {
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    word-break: break-all;
}

/* Logic Rules */
.logic-rule {
    background: #fff3cd;
    border-color: #ffeaa7;
}

/* Survey Templates */
.template-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Enhanced Buttons */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Notification Enhancements */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

/* Survey Analytics */
.analytics-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.analytics-card .card-body {
    padding: 2rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    body {
        padding-bottom: 100px;
    }
    
    .question-item .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .question-item .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
    .footer-fixed {
        padding: 0.75rem 0;
    }
}

/* Survey URL Display */
.survey-url-display {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-family: monospace;
    word-break: break-all;
}

/* Question Type Icons */
.question-type-icon {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Enhanced Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Survey Status Indicators */
.survey-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.survey-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* Navbar */
.top-nav {
    height: 64px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    color: var(--google-blue);
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 480px) {
    .nav-links .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .logo span {
        font-size: 18px;
    }
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    background: white;
    background-image: 
        radial-gradient(at 0% 0%, rgba(66, 133, 244, 0.1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(52, 168, 83, 0.05) 0, transparent 50%);
    text-align: center;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: #202124;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: #5F6368;
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Stats Card */
.hero-stats-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: white;
    padding: 24px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid #EAEAEA;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--google-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: #70757A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: #EAEAEA;
}

/* Content Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 16px;
    color: #202124;
}

.section-header p {
    font-size: 18px;
    color: #5F6368;
}

/* Platforms Grid */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.platform-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    background: white;
    border: 1px solid #DADCE0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.platform-card:hover {
    border-color: var(--google-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon span {
    font-size: 32px;
}

.platform-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #202124;
}

.platform-card p {
    color: #5F6368;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.btn-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--google-blue);
    font-family: var(--font-brand);
}

/* Features Section */
.features-section {
    background: #F8F9FA;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-box {
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #EAEAEA;
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #E8F0FE;
    color: var(--google-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-box h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-box p {
    color: #5F6368;
    font-size: 15px;
}

/* Footer (Matching Intern Style Exactly) */
.app-footer {
    background: #F8F9FA;
    padding: 100px 0 40px;
    border-top: 1px solid #EAEAEA;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.brand-desc {
    color: #5F6368;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #DADCE0;
    color: #5F6368;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: #F1F3F4;
    color: var(--google-blue);
    border-color: var(--google-blue);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.link-group h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #202124;
}

.link-group a {
    display: block;
    color: #70757A;
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: 0.2s;
}

.link-group a:hover {
    color: var(--google-blue);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-blue {
    color: var(--google-blue);
    font-size: 20px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #EAEAEA;
    text-align: center;
    color: #70757A;
    font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .platform-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    .hero-title {
        font-size: 40px;
    }
    .hero-stats-card {
        flex-direction: column;
        padding: 32px;
        gap: 24px;
        width: 100%;
    }
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .platform-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta-group {
        flex-direction: column;
        padding: 0 24px;
    }
    .btn-large {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    .logo {
        font-size: 18px;
    }
}
