/***** 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;
}

/* Remove old header style */
/* 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;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
}

/* App Container */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: white;
    border-bottom: 1px solid #dbdbdb;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

header a {
    color: #262626;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

header a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(../image/favicon.png) no-repeat center/contain;
}

/* Main Content Area */
.content-area {
    flex: 1;
    margin-top: 50px; /* Header height */
    margin-bottom: 60px; /* Bottom nav height */
    padding: 10px;
    overflow-y: auto;
    background-color: #fafafa;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #dbdbdb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    height: 60px;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

.nav-item {
    color: #8e8e8e;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    transition: color 0.2s ease;
    width: 20%;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-item.router-link-active {
    color: #262626;
}

.nav-item:hover {
    color: #262626;
}

/* New Post Button */
.new-post {
    position: relative;
}

.new-post-button {
    background-color: #0095f6;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.new-post-button:hover {
    transform: scale(1.05);
}

.new-post-button i {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

/* Transitions */
.slide-enter-active,
.slide-leave-active {
    transition: all 0.3s ease;
}

.slide-enter-from,
.slide-leave-to {
    opacity: 0;
    transform: translateX(30px);
}