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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

#syncStatus {
    font-size: 0.9em;
    opacity: 0.9;
}

.form-container {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #333;
}

form {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

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

.controls {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.sync-btn {
    background: #48bb78;
}

.sync-btn:hover {
    background: #38a169;
}

.export-btn {
    background: #ed8936;
}

.export-btn:hover {
    background: #dd6b20;
}

.clear-btn {
    background: #f56565;
}

.clear-btn:hover {
    background: #e53e3e;
}

.records-container {
    padding: 30px;
}

.records-container h2 {
    margin-bottom: 20px;
    color: #333;
}

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

.record-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s;
}

.record-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.record-info {
    flex: 1;
}

.record-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.record-details {
    color: #666;
    font-size: 0.9em;
}

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

.delete-btn {
    background: #f56565;
    padding: 8px 16px;
    font-size: 14px;
}

.edit-btn {
    background: #48bb78;
    padding: 8px 16px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .container {
        border-radius: 10px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .form-container, .records-container, .controls {
        padding: 20px;
    }
    
    .record-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}