body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f4f7fa; 
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background-color: #2c3e50; 
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.app-footer {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    text-align: center;
    margin-top: auto;
    font-size: 0.85em;
}

.main-content {
    flex-grow: 1;
    padding: 30px 0; 
}

.container {
    /* background-color: #ffffff; */
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    border-radius: 12px; 
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); 
}

.page-header-fancy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid rgb(201, 199, 199); 
    padding-bottom: 15px;
}

.page-title-fancy {
    font-size: 1.8em;
    font-weight: 600;
    color: #34495e; 
}

.add-new-contact-btn {
    background-color: green; 
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.95em;
    transition: background-color 0.3s, transform 0.1s;
}

.add-new-contact-btn:hover {
    background-color: green;
    transform: translateY(-1px);
}

.add-new-contact-btn .fas {
    margin-right: 8px;
}

.grid-icon-fancy {
    font-size: 1.6em;
    color: #95a5a6; 
    cursor: pointer;
}

.search-bar-fancy {
    display: flex;
    align-items: stretch; 
    margin-bottom: 30px;
}

.search-input-fancy {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 6px 0 0 6px; 
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-input-fancy:focus {
    border-color: #00baff;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.search-btn-fancy, .clear-btn-fancy {
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: opacity 0.2s;
    white-space: nowrap; 
}

.search-btn-fancy {
    background-color: #00baff;
    color: white;
}

.clear-btn-fancy {
    background-color: #ecf0f1;
    color: #7f8c8d;
    border-radius: 0 6px 6px 0; 
}

.search-btn-fancy:hover, .clear-btn-fancy:hover {
    opacity: 0.9;
}


.contacts-table-fancy {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.table-row-fancy {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.header-row-fancy {
    background-color: #f8f9fa;
    font-weight: 700;
    text-transform: uppercase;
    color: #7f8c8d;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.table-cell-fancy {
    padding: 15px; 
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-name-cell { width: 40%; }
.contact-email-cell { width: 35%; }
.contact-phone-cell { width: 25%; }

.empty-state-row-fancy {
    background-color: #fff;
    border-bottom: none;
}

.no-contacts-cell {
    width: 100%;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
    padding: 30px;
    font-size: 1.1em;
}

.no-contacts-cell .fas {
    margin-right: 10px;
}