/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.logo h1 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 2em;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.9em;
}

nav ul {
    display: flex;
    list-style: none;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li a {
    text-decoration: none;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #3498db;
    color: white;
}

/* Dashboard Styles */
.dashboard {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 1em;
    margin-bottom: 10px;
}

.stat-card p {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: bold;
}

/* Email Controls */
.email-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.domain-selector, .email-generator {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-control {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    font-size: 1em;
}

.current-email {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.email-text {
    font-weight: bold;
    color: #2c3e50;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn i {
    font-size: 1.1em;
}

.primary {
    background-color: #3498db;
    color: white;
}

.success {
    background-color: #2ecc71;
    color: white;
}

.info {
    background-color: #1abc9c;
    color: white;
}

.danger {
    background-color: #e74c3c;
    color: white;
}

.refresh {
    background-color: #f1c40f;
    color: white;
}

.copy {
    background-color: #9b59b6;
    color: white;
}

.view {
    background-color: #3498db;
    color: white;
}

.close {
    background-color: #e74c3c;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Email Actions */
.email-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Table Styles */
.email-list {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    color: #34495e;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Email Preview */
.email-preview {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    width: 900px;
    height: 500px;
    overflow: hidden;
    z-index: 1000;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.preview-content {
    height: calc(500px - 100px);
    overflow: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.preview-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Footer Styles */
footer {
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat h4 {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat p {
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: bold;
}

.copyright {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    .email-controls {
        flex-direction: column;
    }
    
    .domain-selector, .email-generator {
        flex-direction: column;
    }
    
    .form-control {
        width: 100%;
    }
    
    .email-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auto-refresh {
        margin-left: 0;
        justify-content: center;
    }
    
    .email-preview {
        max-width: 95%;
        max-height: 95vh;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 8px 10px;
    }
} 