/**
 * Estilos principais do plugin SOS Oceano
 * Versão: 1.0.0
 */

/* Estilos gerais */
.sos-oceano-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .sos-oceano-container {
        padding: 0 15px;
    }
}

/* Estilos para mensagens */
.sos-oceano-notice {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

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

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

/* Estilos para botões */
.sos-oceano-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sos-oceano-button:hover {
    background-color: #005177;
    color: #fff;
}

/* Estilos para formulários */
.sos-oceano-form {
    max-width: 600px;
    margin: 20px 0;
}

.sos-oceano-form-group {
    margin-bottom: 15px;
}

.sos-oceano-form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.sos-oceano-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Tabelas */
.sos-oceano-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.sos-oceano-table th,
.sos-oceano-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.sos-oceano-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Grid responsivo */
.sos-oceano-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.sos-oceano-col {
    flex: 1;
    padding: 0 15px;
    min-width: 250px;
}

/* Cards */
.sos-oceano-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sos-oceano-card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sos-oceano-card-title {
    margin: 0;
    color: #23282d;
    font-size: 1.2em;
}

/* Loader */
.sos-oceano-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: sos-oceano-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes sos-oceano-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade para telas pequenas */
@media (max-width: 480px) {
    .sos-oceano-button {
        width: 100%;
        text-align: center;
    }
    
    .sos-oceano-col {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }
}
