
.dmarc-container{
    max-width:1200px;
    margin: 0 auto;
    background:#fff;
    border-radius:15px;
}

.dmarc-form{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    background:#f8f9fa;
    padding:20px;
    border-radius:12px;
}

.dmarc-form input{
    flex:1;
    padding:14px;
    font-size:16px;
    border-radius:8px;
    border:1px solid #ccc;
}

.dmarc-form input:focus{
    outline:none;
    border:1px solid #1E4738;
    box-shadow:0 0 5px rgba(30,71,56,0.4);
}

/* Check Button - Always GREEN */
.dmarc-form button[type="submit"]{
    padding:14px 25px;
    background:#1E4738 !important;
    color:#fff !important;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    transition:all 0.3s;
}

.dmarc-form button[type="submit"]:hover{
    opacity:0.85;
    background:#1E4738 !important;
}

/* Loading state for button - Stays GREEN with opacity */
.dmarc-form button[type="submit"].loading {
    background: #1E4738 !important;
    opacity: 0.6;
    cursor: wait;
    position: relative;
    pointer-events: none;
}

.dmarc-form button[type="submit"].loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    right: 12px;
    margin-top: -9px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: button-spin 0.8s linear infinite;
}

/* Copy Button - Always GREEN */
.copy-btn{
    background:#1E4738 !important;
    border:none;
    color:#fff !important;
    cursor:pointer;
    font-weight:bold;
    padding:8px 15px;
    border-radius:8px;
    transition:all 0.3s;
    white-space:nowrap;
}

.copy-btn:hover{
    opacity:0.85;
    background:#1E4738 !important;
}

/* Disabled/Loading state for copy button */
.copy-btn.loading {
    background: #1E4738 !important;
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

@keyframes button-spin {
    to { transform: rotate(360deg); }
}

/* Loading state for result boxes - GREEN with opacity */
.loading-box {
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    pointer-events: none;
}

.loading-box p {
    position: relative;
}

.loading-box p::after {
    content: "...";
    position: absolute;
    margin-left: 5px;
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

.result-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:20px;
    margin-top:30px;
}

.box{
    background:#fff;
    padding:25px;
    border-radius:12px;
    text-align:center;
    border:1px solid #ddd;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    transition:all 0.3s;
}

.box:hover{
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.box h4{
    margin-bottom:12px;
    font-size:16px;
    color:#1E4738;
}

.box p{
    font-weight:bold;
    font-size:22px;
    margin:0;
    transition:all 0.3s;
}

.copy-box{
    margin-top:20px;
    background:#fff;
    padding:25px;
    border-radius:12px;
    text-align:center;
    border:1px solid #ddd;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    transition:all 0.3s;
}

.copy-box:hover{
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

.copy-box h4{
    margin-bottom:12px;
    font-size:16px;
    color:#1E4738;
}

.copy-inner{
    background:#f8f9fa;
    border-radius:10px;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    word-break:break-all;
    gap:15px;
}

.dmarc-record-text{
    flex:1;
    word-break:break-all;
    text-align:left;
}

.copy-btn-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
}

.success-text{
    color:#1E4738;
    font-size:14px;
}

.error{
    color:red;
    font-weight:bold;
    font-size:22px;
    text-align:center;
    margin-top:20px;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){
    .copy-inner{
        flex-direction: column;
        align-items: stretch;
        gap:15px;
    }
    
    .copy-btn-wrapper{
        justify-content: center;
        order: 1;
    }
    
    .dmarc-record-text{
        text-align: center;
        order: 2;
    }
    
    .result-grid{
        grid-template-columns: 1fr;
        gap:15px;
    }
    
    .dmarc-form{
        flex-direction:column;
    }
    
    .box p{
        font-size:18px;
    }
}

@media (max-width:992px) and (min-width:769px){
    .result-grid{
        grid-template-columns: repeat(2, 1fr);
        gap:15px;
    }
}
