/* Header Styles */
.main-header {
    background-color: #0099ff;
    height: 50px;
    width: 100%;
    border-bottom: 1px solid #0077cc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}

/* Footer Styles */
.main-footer {
    background-color: #0099ff;
    height: 50px;
    width: 100%;
    border-top: 1px solid #0077cc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.footer-text {
    color: white;
    font-weight: bold;
}

.footer-text.left {
    margin-right: auto;
    padding-left: 25px;
}

.footer-link.right {
    margin-left: auto;
    padding-right: 25px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-clock {
    color: white;
    font-weight: bold;
    font-size: 36px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Body padding to account for fixed footer */
body {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 60px; /* Space for fixed footer */
    margin: 0;
    min-height: 100vh;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
    box-sizing: border-box;
}

.card {
    border: none;
    border-radius: 1rem;
    background: white;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.card-body {
    padding: 2rem;
}

/* Enhanced email icon with sonar effect */
.email-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.email-icon-pulsating {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.email-image {
    width: 60px;
    height: 60px;
    z-index: 10;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.5);
}

.sonar-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #0d6efd;
    opacity: 0;
    z-index: 1;
    animation: sonar-wave 2s linear infinite;
}

.sonar-wave:nth-child(2) {
    animation-delay: 0.7s;
}

.sonar-wave:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes sonar-wave {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-group input:disabled,
.form-group select:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    animation: limit-flash 2s infinite;
}

@keyframes limit-flash {
    0% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 0, 0, 0.5); }
}

.limit-reached {
    color: #dc3545;
    font-weight: bold;
    margin-top: 5px;
    animation: text-flash 2s infinite;
}

@keyframes text-flash {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.input-group {
    display: flex;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.domain-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
    background-color: #f8f9fa;
    cursor: pointer;
    padding: 0 0.75rem;
    border: 1px solid #ced4da;
    border-left: none;
}

.custom-domain-group {
    margin-top: 0.5rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    border: none;
    cursor: pointer;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Alert styles */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: 'f8d7da';
    border-color: #f5c6cb;
}

/* Test result styles */
#testResult {
    padding: 10px;
    border-radius: 5px;
}

.test-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.test-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

h1 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: #6c757d;
    margin: 0;
}