* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 28px;
}

.logo h1 {
    font-size: 22px;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 10px;
}

.btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    overflow: hidden;
}

.add-notification, .notifications-list {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.add-notification h2, .notifications-list h2 {
    color: #667eea;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Sound Buttons */
.sound-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sound-btn {
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.sound-btn:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#search, #filter-tag {
    flex: 1;
}

/* Notifications List */
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Notification Item */
.notification-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
    transition: transform 0.3s;
}

.notification-item.active {
    border-left-color: #4CAF50;
}

.notification-item.inactive {
    border-left-color: #999;
    opacity: 0.7;
}

.notification-item.overdue {
    border-left-color: #ff4757;
}

.notification-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.notification-header h4 {
    color: #333;
    font-size: 16px;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background: #e8f5e8;
    color: #4CAF50;
}

.status.overdue {
    background: #ffeaea;
    color: #ff4757;
}

.btn-action {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #ffeaea;
}

.notification-message {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.time, .repeat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 13px;
}

.tags {
    display: flex;
    gap: 5px;
}

.tag {
    background: #eef2ff;
    color: #667eea;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
}

.btn-toggle {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-toggle:hover {
    background: #5a67d8;
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
}

.stats {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.app-info {
    color: #999;
    font-size: 13px;
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 999999;
    transform: translateX(500px);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    border: 2px solid #667eea;
}

.notification-popup.show {
    transform: translateX(0);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.popup-header i {
    font-size: 24px;
}

.popup-header h3 {
    flex: 1;
    font-size: 18px;
}

.btn-close-popup {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body {
    padding: 25px;
}

.popup-body p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.popup-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.popup-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popup-footer {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
}

.btn-popup {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-snooze {
    background: #ffa502;
    color: white;
}

.btn-snooze:hover {
    background: #e59400;
}

.btn-10min {
    background: #3742fa;
    color: white;
}

.btn-10min:hover {
    background: #2f38e0;
}

.btn-dismiss {
    background: #2ed573;
    color: white;
}

.btn-dismiss:hover {
    background: #25c464;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .add-notification, .notifications-list {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .main-content {
        padding: 20px;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .notification-popup {
        width: calc(100% - 40px);
        right: 20px;
    }
}