/* Convinex Admin CSS - Mobile Responsive */
.convinex-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Mobile responsive grid */
@media screen and (max-width: 768px) {
    .convinex-dashboard {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
}

.convinex-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    box-sizing: border-box;
}

/* Mobile responsive cards */
@media screen and (max-width: 768px) {
    .convinex-card {
        padding: 15px;
        border-radius: 8px;
    }
}

@media screen and (max-width: 480px) {
    .convinex-card {
        padding: 12px;
        margin: 0 -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.convinex-card h2 {
    margin-top: 0;
    font-size: 1.5em;
}

@media screen and (max-width: 768px) {
    .convinex-card h2 {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 480px) {
    .convinex-card h2 {
        font-size: 1.2em;
    }
}

/* Registration section responsive */
.convinex-registration-section {
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .convinex-registration-section {
        padding: 20px !important;
        margin: 15px 0 !important;
    }
    
    .convinex-registration-section h2 {
        font-size: 1.3em !important;
    }
    
    .convinex-registration-section p {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .convinex-registration-section {
        padding: 15px !important;
        margin: 10px 0 !important;
        border-radius: 8px !important;
    }
    
    .convinex-registration-section h2 {
        font-size: 1.2em !important;
        margin-top: 0 !important;
    }
    
    .convinex-registration-section > div {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .convinex-registration-section .button {
        width: 100% !important;
        min-width: auto !important;
        text-align: center !important;
        margin: 0 !important;
    }
}

/* Form table responsive */
@media screen and (max-width: 768px) {
    .form-table {
        display: block;
    }
    
    .form-table tr {
        display: block;
        margin-bottom: 20px;
        border-bottom: 1px solid #ddd;
        padding-bottom: 15px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100% !important;
        padding: 10px 0 !important;
    }
    
    .form-table th {
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .form-table input[type="text"],
    .form-table input[type="color"],
    .form-table select,
    .form-table textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {
    .form-table tr {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .form-table th {
        font-size: 14px;
    }
    
    .form-table input[type="text"],
    .form-table input[type="color"],
    .form-table select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px !important;
    }
}

/* Notice boxes responsive */
@media screen and (max-width: 768px) {
    .notice {
        padding: 12px 15px !important;
        margin: 15px 0 !important;
    }
    
    .notice p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
}

@media screen and (max-width: 480px) {
    .notice {
        padding: 10px 12px !important;
        margin: 10px 0 !important;
    }
    
    .notice p {
        font-size: 13px !important;
    }
    
    .notice code {
        font-size: 12px !important;
        padding: 3px 6px !important;
        word-break: break-all;
    }
}

/* Buttons responsive */
@media screen and (max-width: 768px) {
    .button,
    .button-primary,
    .button-large {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    .button,
    .button-primary,
    .button-large {
        width: 100%;
        padding: 12px 20px !important;
        font-size: 16px !important;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    
    .button:last-child,
    .button-primary:last-child {
        margin-bottom: 0;
    }
}

/* Textarea responsive */
@media screen and (max-width: 768px) {
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px !important;
        min-height: 120px !important;
    }
}

/* Wrap container responsive */
@media screen and (max-width: 768px) {
    .wrap {
        padding: 10px !important;
    }
    
    .wrap h1 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
}

@media screen and (max-width: 480px) {
    .wrap {
        padding: 8px !important;
    }
    
    .wrap h1 {
        font-size: 1.5em !important;
        margin-bottom: 12px !important;
    }
}

/* Description text responsive */
@media screen and (max-width: 768px) {
    .description {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}

@media screen and (max-width: 480px) {
    .description {
        font-size: 12px !important;
    }
}
