
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f3a04f 0%, #d4A373 100%);
    min-height: 100vh;
}


.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color:  #d4a373;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #333;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #cdd412;
}

.auth-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e0b018
    ;
    background: t#93922017;
    color: #a4390c;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}


.search-section,
.results-section,
.dashboard-content {
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.search-container,
.results-container,
.dashboard-container {
    max-width: 100%;
}

.search-container h3,
.results-container h3,
.dashboard-container h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-form {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #555;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #870606;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ea9b66;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn,
.action-btn {
    background: linear-gradient(135deg, #ccd542 0%, #d08928 100%);
    color: #160505;
    border: 2px solid #0d0d2d;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-btn:hover,
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.results-grid,
.universities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.university-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.university-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.university-card h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.university-card p {
    color: #666;
    margin-bottom: 1rem;
}

.university-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ead466;
    color: #390101;
}

.btn-primary:hover {
    background: #ead466;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-secondary:hover {
    background: #218838;
    transform: translateY(-1px);
}

.btn-danger {
    background: #4dacae;
    color: white;
}

.btn-danger:hover {
    background: #4dacae;
    transform: translateY(-1px);
}

.dashboard-header {
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-quick input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    min-width: 250px;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state h4 {
    margin-bottom: 1rem;
    color: #333;
}

.empty-state a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"],
.danger-btn {
    background: #eacb66;
    color: #500404;
}

.danger-btn {
    background: #35dcbd;
}

.form-actions button[type="button"] {
    background: #2d654e;
    color: #d7d2d2;
}

.form-actions button:hover {
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #667eea;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #dc3545;
}

.auth-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}


footer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}


@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 0 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-quick input {
        min-width: 100%;
    }

    .results-grid,
    .universities-grid {
        grid-template-columns: 1fr;
    }

    .university-actions {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
}