/***** Font *****/
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body, input, textarea, select, button {
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

/***** Layout *****/
body {
    margin: 0;
    height: 100vh;
}

#app {
    margin: 0;
    height: 100vh;
    display: grid;
    grid: auto auto 1fr auto / auto;
}

header {
    padding: 10px 50px;
    background: #ccc;
}

header h1 {
    margin: 0;
    background: url(../image/favicon.png) no-repeat left center / 32px 32px;
    padding-left: 40px;
}

header a {
    text-decoration: none;
    color: inherit;
}

nav {
    padding: 0 50px;
    background: #666;
    display: flex;
}

nav a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 5px 15px;
    white-space: nowrap;
}

nav a:hover {
    background: #333;
}

main {
    padding: 10px 50px;
}

main h1 {
    margin: 0;
    margin-bottom: 20px;
}

/***** Table *****/
.table {
    border-collapse: collapse;
}

.table th,
.table td {
    border: 1px solid #999;
    padding: 5px;
}

.table th {
    background: #666;
    color: #fff;
}

.table tr:hover td {
    background: #ccc;
}

th.asc::after {
    content: ' ▴';
}

th.desc::after {
    content: ' ▾';
}

/***** Vue.js *****/
[v-cloak] {
    display: none !important;
}

/***** Transition: fade *****/
.fade-enter-active,
.fade-leave-active,
.fade-move {
    transition: 0.3s;
} 

.fade-enter,
.fade-leave-to {
    opacity: 0;
}

/***** Transition: zoom *****/
.zoom-enter-active,
.zoom-leave-active,
.zoom-move {
    transition: 0.3s;
} 

.zoom-enter,
.zoom-leave-to {
    opacity: 0;
    scale: 0.5;
}

/***** Transition: rotate *****/
.rotate-enter-active,
.rotate-leave-active,
.rotate-move {
    transition: 0.3s;
} 

.rotate-enter,
.rotate-leave-to {
    opacity: 0;
    scale: 0.5;
    rotate: 2turn;
}

/***** Transition: slide *****/
.slide-enter-active,
.slide-leave-active,
.slide-move {
    transition: 0.3s;
} 

.slide-enter-from,
.slide-leave-to {
    opacity: 0;
    translate: -100px 0;
}

/***** Transition: slide-left *****/
.slide-left-enter-active,
.slide-left-leave-active {
    transition: 0.3s;
}

.slide-left-enter-from {
    opacity: 0;
    translate: 100px 0;
}

.slide-left-leave-to {
    opacity: 0;
    translate: -100px 0;
}

/***** Transition: slide-right *****/
.slide-right-enter-active,
.slide-right-leave-active {
    transition: 0.3s;
}

.slide-right-enter-from {
    opacity: 0;
    translate: -100px 0;
}

.slide-right-leave-to {
    opacity: 0;
    translate: 100px 0;
}

/* Base Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --border-color: #dcdde1;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* App Container */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.filter-group {
    margin-bottom: 0.5rem;
}

.filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem;
    margin-bottom: 60px; /* Space for bottom nav */
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.nav-item span {
    font-size: 0.8rem;
}

.nav-item.router-link-active {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* Transitions */
.slide-enter-active,
.slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter-from,
.slide-leave-to {
    transform: translateX(20px);
    opacity: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .filter-bar {
        display: flex;
        gap: 1rem;
    }

    .filter-group {
        flex: 1;
        margin-bottom: 0;
    }

    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
    }
}