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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
    min-height: 100vh;
}

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

h1 {
    text-align: center;
    color: #f5576c;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add {
    background: #28a745;
    color: white;
}

.btn-add:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-update {
    background: #ffc107;
    color: #333;
    display: none;
}

.btn-update:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #6c757d;
    color: white;
    display: none;
}

.btn-cancel:hover {
    background: #5a6268;
}

.contacts-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

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

.contact-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid #f5576c;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.contact-email {
    color: #666;
    margin-bottom: 3px;
}

.contact-phone {
    color: #666;
}

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

.btn-edit {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
}

.btn-delete:hover {
    background: #c82333;
}

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

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}