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

:root {
    --primary: #1e3a5f;
    --secondary: #d4af37;
    --bg: #f5f7fa;
    --card-bg: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.container {
    padding: 15px;
}

.website-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
}

.website-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
}

.website-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-info {
    flex: 1;
    min-width: 0;
}

.website-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website-url {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.website-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.website-meta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: #f0f4f8;
    color: var(--primary);
    border-radius: 12px;
}

.website-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

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

.btn-action.favorited {
    background: #ffebee;
    color: #e53935;
}

.btn-action.favorited:hover {
    background: #e53935;
    color: white;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 300;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
    padding: 5px 15px;
    border-radius: 8px;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 11px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 80px;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--card-bg);
    width: 100%;
    max-height: calc(100vh - 160px);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #2c5282);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.category-item {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.category-item:hover {
    background: var(--bg);
}

.category-item.selected {
    background: #e8f0fe;
    color: var(--primary);
}

.category-name {
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.subcategories {
    margin-top: 10px;
    padding-left: 10px;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
}

.subcategories.show {
    display: flex;
}

.subcategory-item {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.subcategory-item:hover {
    border-color: var(--primary);
}

.subcategory-item.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 8px 14px;
    background: var(--bg);
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.filter-tag:hover {
    border-color: var(--primary);
}

.filter-tag.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.region-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.region-col {
    flex: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.user-details h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.user-details p {
    font-size: 13px;
    color: var(--text-light);
}

.menu-item {
    padding: 14px 16px;
    background: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #f0f4f8;
}

.menu-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.menu-item-text {
    flex: 1;
}

.menu-item-text h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.menu-item-text p {
    font-size: 12px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--text-light);
    font-size: 15px;
}

.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 300;
    animation: fadeIn 0.3s ease;
}

.toast.error {
    background: #e53935;
}

.toast.success {
    background: #43a047;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
}

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

.pending-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-approve {
    flex: 1;
    padding: 10px;
    background: #43a047;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.btn-reject {
    flex: 1;
    padding: 10px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.favorite-detail {
    padding: 10px;
    background: var(--bg);
    border-radius: 8px;
    margin-top: 10px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 12px;
    color: var(--text-light);
}

.detail-value {
    font-size: 13px;
    flex: 1;
    text-align: right;
    word-break: break-all;
    margin-left: 10px;
}

.btn-copy {
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--primary);
    background: #f0f4f8;
}

.file-upload input {
    display: none;
}

.file-preview {
    margin-top: 10px;
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    display: none;
}

.file-preview.show {
    display: block;
}

