/* Main styles for Oracle EPM Data Generator */
:root {
    --primary-color: #C74634; /* Oracle Red */
    --secondary-color: #3A5EAB; /* Oracle Blue */
    --accent-color: #00BCD4; /* Cyan */
    --dark-bg: #0f1624;
    --light-text: #ffffff;
    --card-bg: #1a2332;
    --hover-color: #4a5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: var(--card-bg);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.sidebar-header img {
    width: 40px;
    margin-right: 10px;
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: var(--hover-color);
}

.menu-item.active {
    background-color: var(--primary-color);
}

.menu-item i {
    margin-right: 10px;
    font-size: 20px;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 24px;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.card-header i {
    font-size: 24px;
    color: var(--secondary-color);
}

.card-content {
    margin-bottom: 15px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #b03a2e;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2c4a8c;
}

.recent-activity {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.activity-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.activity-icon i {
    color: white;
    font-size: 18px;
}

.activity-details {
    flex: 1;
}

.activity-details h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.activity-details p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.activity-time {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Seções de conteúdo */
.content-section {
    display: none;
    padding: 20px;
}

.content-section.active {
    display: block;
}

/* Formulários */
.form-group {
    margin-bottom: 15px;
}

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

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--light-text);
    font-family: 'Roboto', sans-serif;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Hierarquia */
.hierarchy-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.hierarchy-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hierarchy-item:last-child {
    border-bottom: none;
}

.hierarchy-parent {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.hierarchy-parent:before {
    content: "▶";
    display: inline-block;
    margin-right: 5px;
    font-size: 10px;
    transition: transform 0.3s;
}

.hierarchy-parent.expanded:before {
    transform: rotate(90deg);
}

.hierarchy-children {
    padding-left: 20px;
    display: none;
}

.hierarchy-parent.expanded + .hierarchy-children {
    display: block;
}

/* Regras de Negócio */
.rules-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.rule-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rule-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.rule-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}
