:root {
    --primary: #6c5ce7;
    --primary-hover: #5b4cc4;
    --secondary: #a29bfe;
    --background: #dfe6e9;
    --surface: #ffffff;
    --text: #2d3436;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

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

header {
    background: var(--surface);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1, h2, h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
}

/* Cards */
.card, .lesson-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.settings-card {
    margin-bottom: 2rem;
}

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

.lesson-card:hover {
    transform: translateY(-2px);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1rem;
}

input[type="text"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box; 
    /* Fix box-sizing */
}

.input-group {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
}

.primary-btn:hover {
    background-color: var(--primary-hover);
}

.secondary-btn {
    background-color: var(--text);
    color: white;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.edit-btn {
    background-color: #e0e0e0;
    color: var(--text);
    padding: 6px 12px;
    font-size: 0.85rem;
}

.edit-btn:hover {
    background-color: #d0d0d0;
}

.send-btn {
    background-color: #25D366;
    color: white;
    padding: 6px 12px;
    font-size: 0.85rem;
}

.send-btn:hover {
    background-color: #1fb855;
}

.send-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Utility */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #eee;
}

.status-sent .status-badge { background: var(--success); color: white; }
.status-pending .status-badge { background: var(--warning); color: #333; }
.status-failed .status-badge { background: var(--danger); color: white; }

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
