:root {
    --primary-color: #007aff;
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-color: #1d1d1f;
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    margin: 0; padding: 20px;
}

.container { max-width: 1200px; margin: 0 auto; }

header { 
    background: white;
    padding: 20px 30px;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px; 
}

h1 { margin: 0; font-size: 1.5rem; color: var(--primary-color); }

.header-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.search-container input {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    width: 250px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000;
}

.modal-content {
    background: white; padding: 30px; border-radius: var(--border-radius);
    width: 90%; max-width: 500px;
}

.modal-content textarea {
    width: 100%; height: 200px; margin: 15px 0; padding: 10px;
    border-radius: 8px; border: 1px solid #ddd; box-sizing: border-box;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}

.card {
    background: var(--card-bg); padding: 15px; border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); border: 1px solid #e1e1e1;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.last-time {
    font-size: 0.7rem;
    color: #86868b;
}

.sms-preview {
    background: #f9f9f9; padding: 10px; border-radius: 8px;
    font-family: monospace; font-size: 0.9rem; min-height: 50px;
    white-space: pre-wrap; word-break: break-all; border: 1px solid #eee;
}

.pagination-top, .pagination-bottom {
    display: flex; gap: 10px; align-items: center; justify-content: center;
}

.pagination-bottom { margin-top: 30px; padding-bottom: 50px; }

button {
    background: var(--primary-color); color: white; border: none;
    padding: 10px 20px; border-radius: 8px; cursor: pointer;
}

button.secondary { background: #e1e1e1; color: #333; }
button#toggle-password:hover {
    color: var(--primary-color) !important;
}

#login-page .modal-content {
    max-width: 350px;
}

.hidden { display: none; }
