/* Modern Clean Theme for Forum3270 */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --primary-dark: #3a0ca3;
    --secondary: #4cc9f0;
    --accent: #f72585;
    --success: #4ade80;
    --warning: #fcd34d;
    --danger: #f87171;
    --info: #60a5fa;
    
    --text: #27272a;
    --text-light: #71717a;
    --text-lighter: #a1a1aa;
    
    --bg: #f8fafc;
    --bg-light: #ffffff;
    --bg-dark: #f1f5f9;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-focus: rgba(99, 102, 241, 0.4);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    
    --duration-normal: 150ms;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.4;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.app-main {
    flex: 1;
    width: 100%;
    margin-bottom: 0.75rem;
}

.app-footer {
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: var(--text-light);
    font-size: 0.7rem;
}

/* Logo & Navigation */
.logo a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.logo svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0.75rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
    position: relative;
    transition: color var(--duration-normal) ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--duration-normal) ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Cards & Containers */
.card {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.card-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-light);
}

.card-header h2, .card-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.card-body {
    padding: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all var(--duration-normal) ease;
    line-height: 1.25;
}

.btn:hover {
    background-color: var(--bg-dark);
    border-color: var(--border);
}

.btn-sm {
    padding: 0.125rem 0.375rem;
    font-size: 0.6875rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    filter: brightness(0.9);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--text);
}

.btn-warning:hover {
    filter: brightness(0.95);
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
    color: white;
}

.btn-info:hover {
    filter: brightness(0.9);
}

/* Forms */
.form-group {
    margin-bottom: 0.5rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text);
}

input, textarea {
    width: 100%;
    padding: 0.375rem 0.5rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.8125rem;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--border-focus);
}

textarea {
    min-height: 100px;
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    resize: vertical;
    line-height: 1.35;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    padding: 0.375rem 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid transparent;
    font-size: 0.75rem;
}

.alert-success {
    background-color: rgba(74, 222, 128, 0.1);
    border-left-color: var(--success);
    color: #166534;
}

.alert-danger {
    background-color: rgba(248, 113, 113, 0.1);
    border-left-color: var(--danger);
    color: #b91c1c;
}

/* Tables */
.notes-list {
    width: 100%;
    border-collapse: collapse;
}

.notes-list th, .notes-list td {
    padding: 0.375rem 0.5rem;
    text-align: left;
    font-size: 0.75rem;
}

.notes-list th {
    font-weight: 500;
    color: var(--text-light);
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.notes-list td {
    border-bottom: 1px solid var(--border-light);
}

.notes-list tr:last-child td {
    border-bottom: none;
}

.notes-list tr:hover td {
    background-color: var(--bg-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.125rem;
    margin-top: 0.75rem;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
}

.pagination .active a {
    background-color: var(--primary);
    color: white;
}

/* Note Content */
.note-content {
    font-family: 'Consolas', 'Monaco', 'Menlo', monospace;
    padding: 0.5rem;
    white-space: pre-wrap;
    line-height: 1.35;
    font-size: 0.8125rem;
}

.note-line {
    min-height: 1.35em;
}

.note-info {
    background-color: var(--bg-dark);
    padding: 0.375rem 0.5rem;
    color: var(--text-light);
    font-size: 0.6875rem;
    border-bottom: 1px solid var(--border);
}

/* Page Headers */
.page-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 0.75rem;
    grid-gap: 0.5rem;
}

.page-header h2 {
    text-align: center;
    margin: 0;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-actions {
    display: flex;
    gap: 0.25rem;
}

/* Utilities */
.char-counter {
    margin-top: 0.125rem;
    font-size: 0.6875rem;
    color: var(--text-lighter);
}

.char-counter.warning {
    color: var(--warning);
}

.char-counter.danger {
    color: var(--danger);
}

/* Empty State */
.empty-state {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-align: center;
    padding: 1.5rem 0.75rem;
}

.empty-state-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state h3 {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.empty-state p {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Login Container */
.login-container {
    max-width: 350px;
    margin: 0.75rem auto;
} 
