* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

.panel {
    display: none;
}

.panel.active {
    display: block;
}

#login-panel.active {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff6a00 0%, #ff8c00 50%, #ffa500 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff4400;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff4400;
    background: white;
    box-shadow: 0 0 0 2px rgba(255, 68, 0, 0.1);
}

button {
    background: linear-gradient(135deg, #ff4400 0%, #ff6a00 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

#login-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    padding: 14px;
}

.error {
    color: #ff4400;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

#main-panel {
    min-height: 100vh;
    background: #f4f4f4;
}

header {
    background: linear-gradient(135deg, #ff4400 0%, #ff6a00 100%);
    padding: 16px 30px;
    box-shadow: 0 2px 8px rgba(255, 68, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: white;
    font-size: 20px;
    font-weight: 600;
}

#logout-btn {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    font-size: 14px;
}

#logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

nav {
    background: white;
    padding: 0 30px;
    display: flex;
    gap: 0;
    border-bottom: 1px solid #eee;
}

.nav-btn {
    background: transparent;
    color: #666;
    border: none;
    padding: 16px 24px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.nav-btn:hover {
    color: #ff4400;
    background: #fff8f5;
    transform: none;
    box-shadow: none;
}

.nav-btn.active {
    background: transparent;
    color: #ff4400;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4400;
}

main {
    padding: 10px 20px;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar input, .toolbar select {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    background: white;
    transition: all 0.2s;
}

.toolbar input:focus, .toolbar select:focus {
    outline: none;
    border-color: #ff4400;
    box-shadow: 0 0 0 2px rgba(255, 68, 0, 0.1);
}

.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-wrapper {
    max-height: 500px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 #e0e0e0;
}

thead tr {
    background: #fafafa;
}

tbody tr:hover {
    background: #fff8f5;
}

tbody tr:last-child td {
    border-bottom: none;
}

td button {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 6px;
    border-radius: 4px;
}

td button:last-child {
    margin-right: 0;
}

td button:first-child {
    background: #ff4400;
}

td button:first-child:hover {
    box-shadow: 0 2px 8px rgba(255, 68, 0, 0.3);
}

td button:nth-child(2) {
    background: #f39c12;
}

td button:nth-child(2):hover {
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

td button:nth-child(3) {
    background: #e74c3c;
}

td button:nth-child(3):hover {
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 12% auto;
    padding: 24px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close {
    color: #999;
    float: right;
    font-size: 24px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

#modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#modal-form .form-group {
    margin: 0;
}

#modal-form button {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

#modal-cancel {
    background: #95a5a6;
}

#modal-cancel:hover {
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.status-completed {
    color: #27ae60;
    font-weight: 600;
    padding: 4px 10px;
    background: #e8f5e9;
    border-radius: 12px;
    font-size: 12px;
}

.status-pending {
    color: #ff6a00;
    font-weight: 600;
    padding: 4px 10px;
    background: #fff8f0;
    border-radius: 12px;
    font-size: 12px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 32px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #ff4400;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    cursor: default;
}

.tag span {
    margin-left: 6px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.tag span:hover {
    opacity: 0.8;
}

.pagination {
    margin-top: 16px;
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pagination-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-container span {
    color: #666;
    font-size: 14px;
}

.pagination-container span.page-info {
    color: #333;
    font-weight: 600;
    min-width: 100px;
}

.pagination-container button {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    color: #666;
}

.pagination-container button:hover:not(.active):not(:disabled) {
    background: #fff8f5;
    border-color: #ff4400;
    color: #ff4400;
}

.pagination-container button.active {
    background: #ff4400;
    color: white;
    border-color: #ff4400;
}

.pagination-container button:disabled {
    background: #fafafa;
    border-color: #e0e0e0;
    color: #bbb;
    cursor: not-allowed;
}

.pagination-container .page-size-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    min-width: 100px;
}

img {
    max-width: 60px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
