:root {
    --doraemon-blue: #0096d6;
    --doraemon-white: #ffffff;
    --doraemon-red: #e3001b;
    --doraemon-yellow: #fbd300;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f9f9;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.doraemon-header {
    background-color: var(--doraemon-blue);
    color: var(--doraemon-white);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 5px solid var(--doraemon-red);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.bell {
    width: 30px;
    height: 30px;
    background-color: var(--doraemon-yellow);
    border-radius: 50%;
    border: 2px solid #333;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.bell::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 2px;
    right: 2px;
    height: 2px;
    background-color: #333;
}
.bell::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 12px;
    width: 4px;
    height: 4px;
    background-color: #333;
    border-radius: 50%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--doraemon-white);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: var(--doraemon-white);
    color: var(--doraemon-blue);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #e6f7ff 100%);
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 10px 20px rgba(0, 150, 214, 0.1);
    position: relative;
    overflow: hidden;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--doraemon-blue);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Search Bar */
.search-bar {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: 2px solid var(--doraemon-blue);
    border-radius: 30px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    box-shadow: 0 4px 12px rgba(0, 150, 214, 0.2);
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--doraemon-red);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #c20017;
}

/* Filters */
.filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn, .type-btn {
    padding: 10px 25px;
    border: 2px solid var(--doraemon-blue);
    background: transparent;
    color: var(--doraemon-blue);
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active, 
.type-btn:hover, .type-btn.active {
    background-color: var(--doraemon-blue);
    color: white;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.file-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--doraemon-blue);
    display: flex;
    flex-direction: column;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 150, 214, 0.15);
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

.file-type-pdf { color: #e3001b; }
.file-type-doc { color: #2b579a; }
.file-type-xls { color: #217346; }

.file-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.file-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 5px;
    background-color: #e6f7ff;
    color: var(--doraemon-blue);
}

.download-btn {
    display: block;
    text-align: center;
    background-color: var(--doraemon-yellow);
    color: #333;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #e5c100;
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: var(--doraemon-blue);
    color: white;
    margin-top: auto;
}

/* Admin Page Specific */
.admin-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 40px 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.btn-primary {
    background-color: var(--doraemon-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

.admin-form input, .admin-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}
