

:root {
    --bg: #05070f;
    --card-bg: rgba(255, 255, 255, 0.04);
    --text: #ffffff;
    --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --accent: #7c3aed;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2.5rem;
    color: #e5e7eb;
}

.subtitle {
    color: var(--muted);
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
}

/* TITLE */
h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--accent);
}

/* SEARCH */
.search-container {
    text-align: center;
    margin-bottom: 2rem;
}

.search-input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(124, 58, 237, 0.6);
}
.search-input:hover {
    box-shadow: 0 0 10px rgba(162, 123, 230, 0.301);
}

.search-button {
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(124, 58, 237, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.search-button:hover {
    box-shadow: 0 0 10px rgba(162, 123, 230, 0.301);
    transform: translateY(-1px);
}

/* GRID */
.assignments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* CARD */
.assignment {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
    border: 1px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 1px rgba(162, 123, 230, 0.301);
}

/* CARD HOVER (SUBTLE) */
.assignment:hover {
    transform: translateY(-5px);
    border: 1.5px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 18px rgba(162, 123, 230, 0.301);
}

/* TITLE */
.assignment-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
    text-align: center;
}

/* VIEW BUTTON (GLASS STYLE) */
.view-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 25px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: var(--text);
    text-decoration: none;
    transition: 0.2s;
}

/* BUTTON HOVER */
.view-button:hover {
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

/* ICON */
.icon-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.icon {
    font-size: 1.8rem;
    color: var(--text);
    transition: 0.2s;
}

.icon:hover {
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-button {
        width: 100%;
    }
}