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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    font-size: 1.1em;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #667eea;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-section {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #667eea;
}

.search-box button {
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #5568d3;
}

.results {
    display: grid;
    gap: 15px;
}

.girl-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.girl-card h3 {
    color: #667eea;
    margin-bottom: 5px;
}

.girl-card .handle {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.girl-card p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.girl-card .location {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

.girl-card button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.girl-card button:hover {
    background: #218838;
}

.crushes-list {
    display: grid;
    gap: 15px;
}

.crush-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #e91e63;
}

.crush-card h3 {
    color: #e91e63;
    margin-bottom: 5px;
}

.crush-card .handle {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.crush-card p {
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.crush-card .stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

.crush-card .actions {
    display: flex;
    gap: 10px;
}

.crush-card .actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    transition: opacity 0.3s;
}

.crush-card .actions button:hover {
    opacity: 0.8;
}

.btn-view {
    background: #667eea;
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

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

.modal.active {
    display: block;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: #333;
}

.detail-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.detail-header h2 {
    color: #667eea;
    margin-bottom: 5px;
}

.detail-header .handle {
    color: #888;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 18px;
}

.add-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.add-form select,
.add-form textarea,
.add-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

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

.add-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.items-list {
    display: grid;
    gap: 10px;
}

.item-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.item-card.pro {
    border-left-color: #28a745;
}

.item-card.con {
    border-left-color: #dc3545;
}

.item-card .type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.type-pro {
    background: #d4edda;
    color: #155724;
}

.type-con {
    background: #f8d7da;
    color: #721c24;
}

.item-card p {
    color: #555;
    font-size: 14px;
}

.loading {
    text-align: center;
    color: #667eea;
    padding: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.empty {
    text-align: center;
    color: #888;
    padding: 30px;
}
